summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-08-01 21:41:12 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-08-01 21:41:12 +0200
commit25c4acc8328a93627f6ad6f856bf8925f0848e71 (patch)
tree9b4d2393e58dcc150ba83ea2e808d5efcd88b398
parentfixed cookie passing, new test cases (diff)
downloadpyload-25c4acc8328a93627f6ad6f856bf8925f0848e71.tar.xz
Quote issue fixed in replace_module_imports
-rw-r--r--pavement.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pavement.py b/pavement.py
index abb80cb5c..e9a586a7c 100644
--- a/pavement.py
+++ b/pavement.py
@@ -73,6 +73,7 @@ module_replace = [
('self.account.getAccountInfo(self.user, ', 'self.account.getAccountInfo('),
('self.account.getAccountInfo(self.user)', 'self.account.getAccountInfo()'),
('self.account.accounts[self.user]["password"]', 'self.account.password'),
+("self.account.accounts[self.user]['password']", 'self.account.password'),
('from module.', 'from pyload.') # This should be always the last one
]
@@ -280,6 +281,7 @@ def replace_module_imports():
content = content.replace('(Hook):', '(Addon):')
elif '/accounts/' in path:
content = content.replace('self.accounts[user]["password"]', 'self.password')
+ content = content.replace("self.accounts[user]['password']", 'self.password')
f = open(path, 'w')
f.write(content)
f.close()