1. Ali Afshar
  2. sphinx-ali-graphviz

Commits

Georg Brandl  committed fb3d8db

Unify version_info checks.

  • Participants
  • Parent commits 74e86e5
  • Branches default

Comments (0)

Files changed (2)

File sphinx/util/pycompat.py

View file
 
 
 # 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:

File tests/run.py

View file
 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 '.'