tempfile.mkdtemp does not like bytes in py3k
[~helmut/debian-dedup.git] / autoimport.py
index 3076f6e..76e9962 100755 (executable)
@@ -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;")