mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Style fixes
Calm pyflakes by using identifiers, and change hexversion to version.major.
This commit is contained in:
parent
09556d5fbc
commit
f0068dd3bc
6 changed files with 9 additions and 2 deletions
|
@ -56,7 +56,7 @@ try:
|
|||
import difflib
|
||||
except ImportError:
|
||||
difflib = None
|
||||
if sys.hexversion < 0x3000000:
|
||||
if sys.version_info.major < 3:
|
||||
from StringIO import StringIO as StringStream
|
||||
else:
|
||||
from io import BytesIO as StringStream
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue