From 80d710da48bbb0710ab4c566e65b49992a6ab77a Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Thu, 28 Jan 2016 07:59:50 -0500 Subject: [PATCH] Attempt to make Python 3.2 work with fd; typo --- gramps/gen/db/generic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/gen/db/generic.py b/gramps/gen/db/generic.py index 5946eda8a..35aab50b5 100644 --- a/gramps/gen/db/generic.py +++ b/gramps/gen/db/generic.py @@ -83,8 +83,8 @@ def touch(fname, mode=0o666, dir_fd=None, **kwargs): else: opened = os.open(fname, flags, mode) - with os.fdopen() as f: - os.utime(f.fileno(opened) if os.utime in os.supports_fd else fname, + with os.fdopen(opened) as f: + os.utime(f.fileno() if os.utime in os.supports_fd else fname, dir_fd=None if os.supports_fd else dir_fd, **kwargs) class DbGenericUndo(DbUndo):