Skip to content

Commit

Permalink
#1053 fix syntax incompatible with py2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Feb 16, 2020
1 parent 776016f commit 3ed4097
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions psutil/tests/test_posix.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ def ps(fmt, pid=None):
cmd.append('ax')

if SUNOS:
fmt_map = {'command', 'comm',
'start', 'stime'}
fmt_map = set(('command', 'comm', 'start', 'stime'))
fmt = fmt_map.get(fmt, fmt)

cmd.extend(['-o', fmt])
Expand Down

0 comments on commit 3ed4097

Please sign in to comment.