Skip to content

Commit c4c48bc

Browse files
committed
mfw python3.0
1 parent 841b68e commit c4c48bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

S3/Config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
# In python 3, unicode -> str, and str -> bytes
7474
unicode = str
7575

76-
PY32 = (sys.version_info >= (3, 2))
76+
PY3 = (sys.version_info >= (3, 0))
7777

7878

7979
def is_bool_true(value):
@@ -459,7 +459,7 @@ def aws_credential_file(self):
459459
try:
460460
try:
461461
buf = io.StringIO(config_string)
462-
if PY32:
462+
if PY3:
463463
config.read_file(buf)
464464
else:
465465
config.readfp(buf)
@@ -471,7 +471,7 @@ def aws_credential_file(self):
471471
# to be able to read the file with PyConfigParser()
472472
config_string = u'[default]\n' + config_string
473473
buf = io.StringIO(config_string)
474-
if PY32:
474+
if PY3:
475475
config.read_file(buf)
476476
else:
477477
config.readfp(buf)

0 commit comments

Comments
 (0)