diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2019-10-31 11:05:41 -0700 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2020-02-13 19:09:15 +0000 |
commit | 19eb8323c8c96b786520d2e57741ae9e96be740c (patch) | |
tree | 233ec9c13a3d9383cc58063496ec3ebb62e4250f /piglit-resume.py | |
parent | 740649eaff3af7738548d899c5404c487d529f75 (diff) |
drop python2 support
This removes all of the python code for handling python 2.x vs 3.x, now
only 3.6+ is supported. This also drops all uses of the six module, as
its no longer needed.
Python 2.x and <= 3.5 are all EOL, it doesn't make sense to continue to
support version of python that are at the end of their lives and are
being removed from operating systems.
Acked-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/piglit/merge_requests/223>
Diffstat (limited to 'piglit-resume.py')
-rwxr-xr-x | piglit-resume.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/piglit-resume.py b/piglit-resume.py index 94e8deae4..b665113a9 100755 --- a/piglit-resume.py +++ b/piglit-resume.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # coding=utf-8 -# Copyright (c) 2014, 2016 Intel Corporation +# Copyright (c) 2014, 2016, 2019 Intel Corporation # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -27,16 +27,8 @@ Deprecated compatibility wrapper """ -from __future__ import ( - absolute_import, division, print_function, unicode_literals -) import sys -import six - from framework.programs.run import resume -if six.PY2: - resume([i.decode('utf-8') for i in sys.argv[1:]]) -elif six.PY3: - resume(sys.argv[1:]) +resume(sys.argv[1:]) |