summaryrefslogtreecommitdiff
path: root/autoimport.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2015-04-16 17:56:24 +0200
committerHelmut Grohne <helmut@subdivi.de>2015-04-16 17:56:24 +0200
commit2d39544e07d90d6f351d55930ce917d9715a7946 (patch)
tree938617c6514b6d9e186f875087637d4363e2e45c /autoimport.py
parent6018b5a65f02b28fc3455129cdd8fb4eb40d726f (diff)
downloaddebian-dedup-2d39544e07d90d6f351d55930ce917d9715a7946.tar.gz
tempfile.mkdtemp does not like bytes in py3k
Diffstat (limited to 'autoimport.py')
-rwxr-xr-xautoimport.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoimport.py b/autoimport.py
index 3076f6e..76e9962 100755
--- a/autoimport.py
+++ b/autoimport.py
@@ -91,7 +91,7 @@ def main():
default="test.sqlite3",
help="path to the sqlite3 database file")
options, args = parser.parse_args()
- tmpdir = tempfile.mkdtemp(prefix=b"debian-dedup")
+ tmpdir = tempfile.mkdtemp(prefix="debian-dedup")
db = sqlite3.connect(options.database)
cur = db.cursor()
cur.execute("PRAGMA foreign_keys = ON;")