]> khamidou — GitHub mirrors - liszt.git/commitdiff
damn proxy won't let me test it locally
authorkhamidou <khamidou@gmail.com>
Wed, 3 Mar 2010 09:09:30 +0000 (10:09 +0100)
committerkhamidou <khamidou@gmail.com>
Wed, 3 Mar 2010 09:09:30 +0000 (10:09 +0100)
libliszt/utils.py

index c4889eaaf60847c1d3f9ed5f7b34ad95472ea53e..7368165459e06e54efc6824efe5d78589a826ce7 100644 (file)
@@ -180,16 +180,12 @@ class LisztSession:
                 continue
 
     def create_list(self, listname):
-        listname = unicode(listname)
         try:
             urllib2.urlopen(base + "/create/" + quote(listname.encode("utf8")) + "/")
         except HTTPError:
             bailout("Unable to create the list " + listname)
 
     def create_list_entry(self, listname, entry):
-        listname = listname.encode("utf8")
-        entry = entry.encode("utf8")
-
         try:
             urllib2.urlopen(base + "/create/" + quote(listname) + "/" + quote(entry) + "/")
         except HTTPError:
@@ -204,7 +200,6 @@ class LisztSession:
         return json.load(req)
 
     def get_list(self, listname):
-        listname = listname.encode("utf8")
         req = None
 
         try: