diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-03-02 23:02:02 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-03-02 23:02:02 (GMT) |
commit | 0e717addd8a03ed10231a578fce894c07ddb157e (patch) | |
tree | 58c5c39ae883554b0b6b7f61156770861872ac3c /Lib/test | |
parent | bd56722a274287b4ce6212569aff546b572923ab (diff) | |
download | cpython-0e717addd8a03ed10231a578fce894c07ddb157e.zip cpython-0e717addd8a03ed10231a578fce894c07ddb157e.tar.gz cpython-0e717addd8a03ed10231a578fce894c07ddb157e.tar.bz2 |
remove cross-version compatibility code
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_argparse.py | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/Lib/test/test_argparse.py b/Lib/test/test_argparse.py index e1bc83a..7ce2b47 100644 --- a/Lib/test/test_argparse.py +++ b/Lib/test/test_argparse.py @@ -22,29 +22,9 @@ import unittest import warnings import argparse -from test import test_support - -try: - from StringIO import StringIO -except ImportError: - from io import StringIO - -try: - set -except NameError: - from sets import Set as set - -try: - sorted -except NameError: - - def sorted(iterable, reverse=False): - result = list(iterable) - result.sort() - if reverse: - result.reverse() - return result +from StringIO import StringIO +from test import test_support class TestCase(unittest.TestCase): |