projects
/
~helmut
/
debian-dedup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6018b5a
)
tempfile.mkdtemp does not like bytes in py3k
author
Helmut Grohne
<helmut@subdivi.de>
Thu, 16 Apr 2015 15:56:24 +0000
(17:56 +0200)
committer
Helmut Grohne
<helmut@subdivi.de>
Thu, 16 Apr 2015 15:56:24 +0000
(17:56 +0200)
autoimport.py
patch
|
blob
|
history
diff --git
a/autoimport.py
b/autoimport.py
index
3076f6e
..
76e9962
100755
(executable)
--- 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;")