diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2010-01-02 08:40:29 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2010-01-02 08:40:29 -0500 |
commit | 47c3f02dab1a745f595008d006f1474f148a9157 (patch) | |
tree | e961bce63348095c83a3019fcfd22a154203e655 /coverage/backward.py | |
parent | 5da00e1d25fd19ad5a3a5d529ecf93b4f151d4ed (diff) | |
download | python-coveragepy-47c3f02dab1a745f595008d006f1474f148a9157.tar.gz |
Spacing
Diffstat (limited to 'coverage/backward.py')
-rw-r--r-- | coverage/backward.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/coverage/backward.py b/coverage/backward.py index 425b2f8..af46e0d 100644 --- a/coverage/backward.py +++ b/coverage/backward.py @@ -14,7 +14,6 @@ try: except NameError: from sets import Set as set - # Python 2.3 doesn't have `sorted`. try: sorted = sorted @@ -26,7 +25,6 @@ except NameError: return lst # Pythons 2 and 3 differ on where to get StringIO - try: from cStringIO import StringIO BytesIO = StringIO @@ -34,28 +32,24 @@ except ImportError: from io import StringIO, BytesIO # What's a string called? - try: string_class = basestring except NameError: string_class = str # Where do pickles come from? - try: import cPickle as pickle except ImportError: import pickle # range or xrange? - try: range = xrange except NameError: range = range # Exec is a statement in Py2, a function in Py3 - if sys.version_info >= (3, 0): def exec_function(source, filename, global_map): """A wrapper around exec().""" @@ -72,7 +66,6 @@ def exec_function(source, filename, global_map): )) # ConfigParser was renamed to the more-standard configparser - try: import configparser except ImportError: |