Commits

Georg Brandl committed 5272744

Only select 3.x versions.

Comments (0)

Files changed (1)

sphinx/highlighting.py

             # just replace all non-ASCII characters.
             src = src.encode('ascii', 'replace')
 
-        if sys.version_info < (3, 2):
-            # Python 3.1 can't proceess '\r' as linesep.
+        if (3, 0) <= sys.version_info < (3, 2):
+            # Python 3.1 can't process '\r' as linesep.
             # `parser.suite("print('hello')\r\n")` cause error.
             if '\r\n' in src:
                 src = src.replace('\r\n', '\n')