| Index: sitescripts/subscriptions/bin/updateSubscriptionDownloads.py | 
| =================================================================== | 
| --- a/sitescripts/subscriptions/bin/updateSubscriptionDownloads.py | 
| +++ b/sitescripts/subscriptions/bin/updateSubscriptionDownloads.py | 
| @@ -25,36 +25,36 @@ | 
| class MercurialSource: | 
| - _prefix = "./" | 
| + _prefix = './' | 
| def __init__(self, repo): | 
| - command = ["hg", "-R", repo, "archive", "-r", "default", | 
| - "-t", "uzip", "-p", ".", "-"] | 
| + command = ['hg', '-R', repo, 'archive', '-r', 'default', | 
| + '-t', 'uzip', '-p', '.', '-'] | 
| data = subprocess.check_output(command) | 
| - self._archive = zipfile.ZipFile(StringIO(data), mode="r") | 
| + self._archive = zipfile.ZipFile(StringIO(data), mode='r') | 
| def close(self): | 
| self._archive.close() | 
| def read_file(self, filename): | 
| - return self._archive.read(self._prefix + filename).decode("utf-8") | 
| + return self._archive.read(self._prefix + filename).decode('utf-8') | 
| def list_top_level_files(self): | 
| for filename in self._archive.namelist(): | 
| filename = filename[len(self._prefix):] | 
| - if "/" not in filename: | 
| + if '/' not in filename: | 
| yield filename | 
| -if __name__ == "__main__": | 
| +if __name__ == '__main__': | 
| setupStderr() | 
| source_repos = {} | 
| - for option, value in get_config().items("subscriptionDownloads"): | 
| - if option.endswith("_repository"): | 
| - source_repos[re.sub(r"_repository$", "", option)] = MercurialSource(value) | 
| + for option, value in get_config().items('subscriptionDownloads'): | 
| + if option.endswith('_repository'): | 
| + source_repos[re.sub(r'_repository$', '', option)] = MercurialSource(value) | 
| - basedir = get_config().get("subscriptionDownloads", "outdir") | 
| - destination = os.path.join(basedir, "data") | 
| + basedir = get_config().get('subscriptionDownloads', 'outdir') | 
| + destination = os.path.join(basedir, 'data') | 
| try: | 
| combine_subscriptions(source_repos, destination, tempdir=basedir) | 
| finally: |