[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[www_shared] branch master updated: remove shutil auditing
From: |
gnunet |
Subject: |
[www_shared] branch master updated: remove shutil auditing |
Date: |
Fri, 07 May 2021 14:26:47 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository www_shared.
The following commit(s) were added to refs/heads/master by this push:
new f1f22fd remove shutil auditing
f1f22fd is described below
commit f1f22fd52056113b852e948aa9a0eebcb1d9b440
Author: Florian Dold <florian@dold.me>
AuthorDate: Fri May 7 14:24:28 2021 +0200
remove shutil auditing
---
sitegen/myshutil.py | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/sitegen/myshutil.py b/sitegen/myshutil.py
index 9ab702e..3291f53 100644
--- a/sitegen/myshutil.py
+++ b/sitegen/myshutil.py
@@ -247,7 +247,6 @@ def copyfile(src, dst, *, follow_symlinks=True):
symlink will be created instead of copying the file it points to.
"""
- sys.audit("shutil.copyfile", src, dst)
if _samefile(src, dst):
raise SameFileError("{!r} and {!r} are the same file".format(src, dst))
@@ -303,7 +302,6 @@ def copymode(src, dst, *, follow_symlinks=True):
(e.g. Linux) this method does nothing.
"""
- sys.audit("shutil.copymode", src, dst)
if not follow_symlinks and _islink(src) and os.path.islink(dst):
if hasattr(os, 'lchmod'):
@@ -356,7 +354,6 @@ def copystat(src, dst, *, follow_symlinks=True):
If the optional flag `follow_symlinks` is not set, symlinks aren't
followed if and only if both `src` and `dst` are symlinks.
"""
- sys.audit("shutil.copystat", src, dst)
def _nop(*args, ns=None, follow_symlinks=None):
pass
@@ -560,7 +557,6 @@ def copytree(src, dst, symlinks=False, ignore=None,
copy_function=copy2,
function that supports the same signature (like copy()) can be used.
"""
- sys.audit("shutil.copytree", src, dst)
with os.scandir(src) as itr:
entries = list(itr)
return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
@@ -699,7 +695,6 @@ def rmtree(path, ignore_errors=False, onerror=None):
is false and onerror is None, an exception is raised.
"""
- sys.audit("shutil.rmtree", path)
if ignore_errors:
def onerror(*args):
pass
@@ -796,7 +791,6 @@ def move(src, dst, copy_function=copy2):
the issues this implementation glosses over.
"""
- sys.audit("shutil.move", src, dst)
real_dst = dst
if os.path.isdir(dst):
if _samefile(src, dst):
@@ -1052,7 +1046,6 @@ def make_archive(base_name, format, root_dir=None,
base_dir=None, verbose=0,
'owner' and 'group' are used when creating a tar archive. By default,
uses the current owner and group.
"""
- sys.audit("shutil.make_archive", base_name, format, root_dir, base_dir)
save_cwd = os.getcwd()
if root_dir is not None:
if logger is not None:
@@ -1238,7 +1231,6 @@ def unpack_archive(filename, extract_dir=None,
format=None):
In case none is found, a ValueError is raised.
"""
- sys.audit("shutil.unpack_archive", filename, extract_dir, format)
if extract_dir is None:
extract_dir = os.getcwd()
@@ -1307,8 +1299,6 @@ def chown(path, user=None, group=None):
user and group can be the uid/gid or the user/group names, and in that
case,
they are converted to their respective uid/gid.
"""
- sys.audit('shutil.chown', path, user, group)
-
if user is None and group is None:
raise ValueError("user and/or group must be set")
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [www_shared] branch master updated: remove shutil auditing,
gnunet <=