diff options
author | Aleksey Lim <alsroot@sugarlabs.org> | 2012-03-06 07:43:39 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@sugarlabs.org> | 2012-03-06 07:43:39 (GMT) |
commit | e2975a1d6a7384031198aa8cfbbfe44d620bacb0 (patch) | |
tree | 3139a2e98a35d066a94784d9bf3d73bb48d1cafc | |
parent | eb87aa98e6c869b919bf43c517cc85aae79ddc8d (diff) |
Remove deprecated MANIFEST files support
-rw-r--r-- | potupdater/pogenerator.py | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/potupdater/pogenerator.py b/potupdater/pogenerator.py index f9478b9..a0d6bb6 100644 --- a/potupdater/pogenerator.py +++ b/potupdater/pogenerator.py @@ -42,22 +42,8 @@ class _DefaultFileList(list): if os.path.isfile(_get_source_path('NEWS')): self.append('NEWS') -class _ManifestFileList(_DefaultFileList): - def __init__(self, manifest): - _DefaultFileList.__init__(self) - self.append(manifest) - - f = open(manifest,'r') - for line in f.readlines(): - stripped_line = line.strip() - if stripped_line and not stripped_line in self: - self.append(stripped_line) - f.close() - def _get_file_list(manifest): - if os.path.isfile(manifest): - return _ManifestFileList(manifest) - elif os.path.isdir('.git'): + if os.path.isdir('.git'): return _GitFileList() elif os.path.isdir('.svn'): return _SvnFileList() |