summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2013-05-27 20:03:12 -0400
committerDonald Stufft <donald@stufft.io>2013-05-27 20:03:12 -0400
commit6543f2338d3af2a2cbcd7343959a75448851b500 (patch)
treefcdb8032c50d9ee44fda69db7bb09e74dfb09e23 /tools
parent0188c5ebf996c8e35315d8866ecf1b260f57dc16 (diff)
downloaddecorator-6543f2338d3af2a2cbcd7343959a75448851b500.tar.gz
Only commit the names once we've already stored them
Diffstat (limited to 'tools')
-rw-r--r--tools/sanitize_package_names.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/sanitize_package_names.py b/tools/sanitize_package_names.py
index a7aab13..fe7a7dc 100644
--- a/tools/sanitize_package_names.py
+++ b/tools/sanitize_package_names.py
@@ -49,11 +49,11 @@ for name in junk_names:
renamed.append((name, new_name))
store.rename_package(name, new_name)
-# Commit the changes
-store.commit()
-
with open("renamed.pkl", "w") as pkl:
pickle.dump(renamed, pkl)
+# Commit the changes
+store.commit()
+
junk_names = bad_names()
print("Found %s bad names" % len(junk_names))