Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
emlove committed Feb 24, 2018
1 parent b613332 commit 83336a4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion homeassistant/helpers/translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def component_translation_file(component):
else:
name = component


module = get_component(component)
component_path = path.dirname(module.__file__)

Expand Down
2 changes: 0 additions & 2 deletions script/translations_download_split.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env python3
"""Merge all translation sources into a single JSON file."""
import glob
import itertools
import os
import re

Expand Down Expand Up @@ -65,7 +64,6 @@ def save_language_translations(lang, translations):
json_util.save_json(path, platform_translations)



def main():
"""Main section of the script."""
if not os.path.isfile("requirements_all.txt"):
Expand Down
3 changes: 2 additions & 1 deletion script/translations_upload_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ def main():

os.makedirs("build", exist_ok=True)

json_util.save_json(os.path.join("build", "translations-upload.json"), translations)
json_util.save_json(
os.path.join("build", "translations-upload.json"), translations)


if __name__ == '__main__':
Expand Down

0 comments on commit 83336a4

Please sign in to comment.