From 8fd8d8b3e90c022cb0e3c951157261e7807d0ebd Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sun, 13 Apr 2014 13:32:21 -0700 Subject: [PATCH] 7258: Fix a path encoding issue when upgrading the database. (cherry picked from commit 40cc0e9091bf4c2e1e215a31658c80216c396633) --- gramps/gen/db/write.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/gramps/gen/db/write.py b/gramps/gen/db/write.py index fbab4f38c..f7031ec8c 100644 --- a/gramps/gen/db/write.py +++ b/gramps/gen/db/write.py @@ -425,8 +425,6 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback): (grampsdb_path, db_code) = os.path.split(dirname) dotgramps_path = os.path.dirname(grampsdb_path) zipname = title + time.strftime("_%Y-%m-%d_%H-%M-%S") + ".zip" - if sys.version_info[0] < 3: - zipname = zipname.encode(glocale.getfilesystemencoding()) zippath = os.path.join(dotgramps_path, zipname) myzip = zipfile.ZipFile(zippath, 'w') for filename in os.listdir(dirname):