Module: deluge
Branch: master
Commit: b180d2a900918a9e36885fb6fd38706472a0a2dc

Author: Damien Churchill <[email protected]>
Date:   Sun Oct 31 14:35:00 2010 +0000

remove the convert conf script that won't actually work anymore

---

 deluge_convert_conf.py |   33 ---------------------------------
 1 files changed, 0 insertions(+), 33 deletions(-)

diff --git a/deluge_convert_conf.py b/deluge_convert_conf.py
deleted file mode 100644
index 7b1dbad..0000000
--- a/deluge_convert_conf.py
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env python
-
-import os
-import sys
-import cPickle as pickle
-if sys.version_info > (2, 6):
-    import json
-else:
-    import simplejson as json
-
-from deluge.common import get_default_config_dir
-
-config_dir = get_default_config_dir()
-files = []
-for filename in os.listdir(config_dir):
-    filename = os.path.join(config_dir, filename)
-    if not os.path.isfile(filename):
-        continue
-    if filename.endswith(".log"):
-        continue
-    
-    basename = os.path.basename(filename)
-    sys.stdout.write("Converting %s..." % (basename) + ' '*(20-len(basename)))
-    try:
-        config = json.load(open(filename, "r"))
-        pickle.dump(config, open(filename, "wb"))
-        print "\033[032mdone\033[0m"
-    except:
-        try:
-            pickle.load(open(filename, "rb"))
-            print "\033[032malready converted\033[0m"
-        except:
-            print "\033[031mfailed\033[1;m"

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to