diff options
author | Georg Brandl <georg@python.org> | 2012-10-28 18:12:06 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2012-10-28 18:12:06 +0100 |
commit | f30ef68167e58dea3ee44400081ea4d8c62061d7 (patch) | |
tree | 510c293dfc398474dd4a1d5cec4245ca8df7738a /sphinx/highlighting.py | |
parent | 2b2bb4122d9030a660c04be5b42b754997d5363b (diff) | |
download | sphinx-git-f30ef68167e58dea3ee44400081ea4d8c62061d7.tar.gz |
Only select 3.x versions.
Diffstat (limited to 'sphinx/highlighting.py')
-rw-r--r-- | sphinx/highlighting.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/highlighting.py b/sphinx/highlighting.py index 0c4d66476..ec1eca921 100644 --- a/sphinx/highlighting.py +++ b/sphinx/highlighting.py @@ -143,8 +143,8 @@ class PygmentsBridge(object): # 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') |