diff options
author | 2013-08-01 21:41:12 +0200 | |
---|---|---|
committer | 2013-08-01 21:41:12 +0200 | |
commit | 25c4acc8328a93627f6ad6f856bf8925f0848e71 (patch) | |
tree | 9b4d2393e58dcc150ba83ea2e808d5efcd88b398 | |
parent | fixed cookie passing, new test cases (diff) | |
download | pyload-25c4acc8328a93627f6ad6f856bf8925f0848e71.tar.xz |
Quote issue fixed in replace_module_imports
-rw-r--r-- | pavement.py | 2 |
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() |