mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Only select 3.x versions.
This commit is contained in:
parent
2b2bb4122d
commit
f30ef68167
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user