Explorar o código

mkstemp_mode: adapt for python 3.5 (no sys.audit)

Thomas Waldmann %!s(int64=3) %!d(string=hai) anos
pai
achega
324a1f852b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/borg/helpers.py

+ 1 - 1
src/borg/helpers.py

@@ -2554,7 +2554,7 @@ def _mkstemp_inner(dir, pre, suf, flags, output_type, mode=0o600):
     for seq in range(TMP_MAX):
         name = next(names)
         file = _os.path.join(dir, pre + name + suf)
-        _sys.audit("tempfile.mkstemp", file)
+        # _sys.audit("tempfile.mkstemp", file)  # no .audit in sys module of python 3.5
         try:
             fd = _os.open(file, flags, mode)
         except FileExistsError: