Patch for Python 2.6

This commit is contained in:
Miroslav Stampar
2019-03-28 22:54:05 +01:00
parent f8eed1f365
commit 09be7cb361
14 changed files with 14 additions and 14 deletions

View File

@@ -31,7 +31,7 @@ from .charsetprober import CharSetProber
from .codingstatemachine import CodingStateMachine
from .mbcssm import UTF8SMModel
if sys.version_info.major > 2:
if sys.version_info >= (3, 0):
xrange = range
ONE_CHAR_PROB = 0.5