tempfile.mkdtemp does not like bytes in py3k
authorHelmut Grohne <helmut@subdivi.de>
Thu, 16 Apr 2015 15:56:24 +0000 (17:56 +0200)
committerHelmut Grohne <helmut@subdivi.de>
Thu, 16 Apr 2015 15:56:24 +0000 (17:56 +0200)
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()
                       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;")
     db = sqlite3.connect(options.database)
     cur = db.cursor()
     cur.execute("PRAGMA foreign_keys = ON;")