mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-03 15:05:11 -04:00
pep8: fix empty line counts
top level: 2, else 1 I also advice to not put "pass" into empty classes, but rather a docstring instead of "pass".
This commit is contained in:
parent
5deb3f9e0f
commit
179eefae29
16 changed files with 74 additions and 15 deletions
|
@ -75,13 +75,11 @@ def main():
|
|||
key = m.group(1)
|
||||
translate_keys.add(key)
|
||||
|
||||
|
||||
if args.show_all_keys:
|
||||
for k in sorted(translate_keys):
|
||||
print k
|
||||
sys.exit()
|
||||
|
||||
|
||||
locale_files = [f for f in files_in(dir, 'locale') if f.endswith('.json')]
|
||||
for locale_file in locale_files:
|
||||
with codecs.open(locale_file, 'r', encoding='utf-8') as f:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue