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 /sphinx/util/pycompat.py | |
| parent | 73e10b85af46fc7588d865db3ed4ba3a083be163 (diff) | |
| download | sphinx-41e44bc87e76642cf4e2bc32f63431dbcf24bfb4.tar.gz | |
Unify version_info checks.
Diffstat (limited to 'sphinx/util/pycompat.py')
| -rw-r--r-- | sphinx/util/pycompat.py | 2 |
1 files changed, 1 insertions, 1 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: |
