Skip to content

Commit

Permalink
Reverting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
habi committed Dec 5, 2015
1 parent e63aad8 commit dd3b9e0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions dodo.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@


def recursive_glob(path, pattern):
"""recursively walk path directories and return files matching the
pattern"""
"""recursively walk path directories and return files matching the pattern"""
for root, dirnames, filenames in os.walk(path, followlinks=True):
for filename in fnmatch.filter(filenames, pattern):
yield os.path.join(root, filename)
Expand Down Expand Up @@ -43,8 +42,7 @@ def set_nikola_test_locales():
locales = []
languages = set()
for line in out.splitlines():
if (line.endswith('.utf8') or line.endswith('.UTF-8')) and \
'_' in line:
if (line.endswith('.utf8') or line.endswith('.UTF-8')) and '_' in line:
lang = line.split('_')[0]
if lang not in languages:
try:
Expand Down

0 comments on commit dd3b9e0

Please sign in to comment.