issue #477: fix 3.x failure in new target.set_file_mode() function.

issue510
David Wilson 5 years ago
parent aa5d37af89
commit c9ff4c6506

@ -724,7 +724,7 @@ def set_file_mode(path, spec, fd=None):
"""
if isinstance(spec, int):
new_mode = spec
elif mitogen.core.PY2 and isinstance(spec, long):
elif not mitogen.core.PY3 and isinstance(spec, long):
new_mode = spec
elif spec.isdigit():
new_mode = int(spec, 8)

Loading…
Cancel
Save