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

issue510
David Wilson 6 years ago
parent aa5d37af89
commit c9ff4c6506

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

Loading…
Cancel
Save