diff options
| author | Georg Brandl <georg@python.org> | 2010-07-28 19:36:57 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2010-07-28 19:36:57 +0200 |
| commit | 41e44bc87e76642cf4e2bc32f63431dbcf24bfb4 (patch) | |
| tree | fbc4766e29fb78d7d089a2b38e255b9ad28780dd | |
| parent | 73e10b85af46fc7588d865db3ed4ba3a083be163 (diff) | |
| download | sphinx-41e44bc87e76642cf4e2bc32f63431dbcf24bfb4.tar.gz | |
Unify version_info checks.
| -rw-r--r-- | sphinx/util/pycompat.py | 2 | ||||
| -rwxr-xr-x | tests/run.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/pycompat.py b/sphinx/util/pycompat.py index 624749fc..229b54b4 100644 --- a/sphinx/util/pycompat.py +++ b/sphinx/util/pycompat.py @@ -27,7 +27,7 @@ except NameError: # the ubiquitous "bytes" helper function -if sys.version_info > (3, 0): +if sys.version_info >= (3, 0): def b(s): return s.encode('utf-8') else: diff --git a/tests/run.py b/tests/run.py index 59a3ffa5..50567fbc 100755 --- a/tests/run.py +++ b/tests/run.py @@ -13,7 +13,7 @@ import sys from os import path, chdir, listdir -if sys.version_info >= (3,): +if sys.version_info >= (3, 0): print('Copying and converting sources to build/lib/tests...') from distutils.util import copydir_run_2to3 testroot = path.dirname(__file__) or '.' |
