pep8'd sugar3.activity

This commit is contained in:
William Orr
2013-05-17 01:16:36 -04:00
committed by Daniel Narvaez
parent 3e5c37f3f8
commit 8a6c935dd0
6 changed files with 69 additions and 65 deletions
+5 -5
View File
@@ -160,16 +160,16 @@ class Packager(object):
stdout=subprocess.PIPE,
cwd=self.config.source_dir)
except OSError:
logging.warn('Packager: git is not installed, ' \
'fall back to filtered list')
logging.warn('Packager: git is not installed, '
'fall back to filtered list')
return list_files(self.config.source_dir,
IGNORE_DIRS, IGNORE_FILES)
stdout, _ = git_ls.communicate()
if git_ls.returncode:
# Fall back to filtered list
logging.warn('Packager: this is not a git repository, ' \
'fall back to filtered list')
logging.warn('Packager: this is not a git repository, '
'fall back to filtered list')
return list_files(self.config.source_dir,
IGNORE_DIRS, IGNORE_FILES)
@@ -363,7 +363,7 @@ def cmd_genpot(config, args):
f.close()
args = ['xgettext', '--join-existing', '--language=Python',
'--keyword=_', '--add-comments=TRANS:', '--output=%s' % pot_file]
'--keyword=_', '--add-comments=TRANS:', '--output=%s' % pot_file]
args += python_files
retcode = subprocess.call(args)