From 3ed40970e4799448535cf436d3f51d6ed9ac550e Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Sun, 16 Feb 2020 22:58:21 +0100 Subject: [PATCH] #1053 fix syntax incompatible with py2.6 --- psutil/tests/test_posix.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/psutil/tests/test_posix.py b/psutil/tests/test_posix.py index 83c1b22b1..a96b310ff 100755 --- a/psutil/tests/test_posix.py +++ b/psutil/tests/test_posix.py @@ -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])