From 9cf065cfdc4245ea7e31edcb2e6ede0cea47d148 Mon Sep 17 00:00:00 2001 From: Larry Hastings Date: Fri, 22 Jun 2012 16:30:09 -0700 Subject: Issue #14626: Large refactoring of functions / parameters in the os module. Many functions now support "dir_fd" and "follow_symlinks" parameters; some also support accepting an open file descriptor in place of of a path string. Added os.support_* collections as LBYL helpers. Removed many functions only previously seen in 3.3 alpha releases (often starting with "f" or "l", or ending with "at"). Originally suggested by Serhiy Storchaka; implemented by Larry Hastings. --- Lib/test/support.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/test/support.py') diff --git a/Lib/test/support.py b/Lib/test/support.py index 3ff1df51d19..ddd3ab619a6 100644 --- a/Lib/test/support.py +++ b/Lib/test/support.py @@ -1703,8 +1703,8 @@ def can_xattr(): try: # TESTFN & tempfile may use different file systems with # different capabilities - os.fsetxattr(tmp_fp, b"user.test", b"") - os.fsetxattr(fp.fileno(), b"user.test", b"") + os.setxattr(tmp_fp, b"user.test", b"") + os.setxattr(fp.fileno(), b"user.test", b"") # Kernels < 2.6.39 don't respect setxattr flags. kernel_version = platform.release() m = re.match("2.6.(\d{1,2})", kernel_version) -- cgit v1.2.3