unused code, imports, or variables

This commit is contained in:
Christophe Benz 2010-04-16 17:41:50 +02:00
commit 54cc3b0a4a
5 changed files with 4 additions and 8 deletions

View file

@ -35,7 +35,7 @@ class LoginPage(CragrBasePage):
try:
self.browser['userLogin'] = login
self.browser['userPassword'] = password
except ClientForm.ControlNotFoundError, e:
except ClientForm.ControlNotFoundError:
self.browser.controls.append(ClientForm.TextControl('text', 'userLogin', {'value': ''}))
self.browser.controls.append(ClientForm.TextControl('text', 'userPassword', {'value': ''}))
self.browser.set_all_readonly(False)

View file

@ -24,7 +24,7 @@ from mako.lookup import TemplateLookup
import wee
from wsgiref.simple_server import make_server
from weboob.capabilities.messages import ICapMessages, ICapMessagesReply
from weboob.capabilities.messages import ICapMessages
from weboob.tools.application import BaseApplication
class HTTPApplication(BaseApplication):

View file

@ -128,7 +128,7 @@ class ModulesLoader:
return self.modules[name]
def load(self):
path = backends.__path__[0]
path = weboob.backends.__path__[0]
regexp = re.compile('^%s/([\w\d_]+)$' % path)
for root, dirs, files in os.walk(path):
m = regexp.match(root)

View file

@ -49,7 +49,7 @@ class BaseApplication(object):
"""
if klass is None:
# load StandardStorage only here because some applications don't
# want # to depend on yaml and do not use this function
# want to depend on yaml and do not use this function
from weboob.tools.storage import StandardStorage
klass = StandardStorage

View file

@ -25,10 +25,6 @@ except ImportError, e:
from mechanize import CookieJar, Cookie
#import sys, logging
#logger = logging.getLogger("mechanize")
#logger.addHandler(logging.StreamHandler(sys.stdout))
#logger.setLevel(logging.DEBUG)
class FirefoxCookieJar(CookieJar):
def __init__(self, domain, sqlite_file=None, policy=None):