summaryrefslogtreecommitdiff
path: root/po/fi/list-unkn-words.py
diff options
context:
space:
mode:
authorChris Lamb <lamby@debian.org>2018-05-22 11:35:19 +0200
committerChris Lamb <lamby@debian.org>2018-05-22 11:37:24 +0200
commit22274e8f944eb62e2546a50431ed5ccb8c86d95b (patch)
tree9eee9e74669d9dc603287e26b6d186cc66381beb /po/fi/list-unkn-words.py
parenta8ecb9dcdd460c4cb9245daae15c0e939b6fc39b (diff)
downloadinstallation-guide-22274e8f944eb62e2546a50431ed5ccb8c86d95b.zip
Format block comments. (PEP8 E265)
Diffstat (limited to 'po/fi/list-unkn-words.py')
-rwxr-xr-xpo/fi/list-unkn-words.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/po/fi/list-unkn-words.py b/po/fi/list-unkn-words.py
index 4932f09d6..c394b4f75 100755
--- a/po/fi/list-unkn-words.py
+++ b/po/fi/list-unkn-words.py
@@ -82,8 +82,8 @@ if __name__ == "__main__":
print "options ", o
print "arguments ", a
- #Try opening filename, if file can not be read we exit
- #right now since nothing to do.
+ # Try opening filename, if file can not be read we exit
+ # right now since nothing to do.
try:
textF = open(a[0], "r")
except IOError, value:
@@ -101,7 +101,7 @@ if __name__ == "__main__":
print "Checker wants Unicode text to check."
else:
print "Checker wants normal strings text to check."
- #Read in Personal word lists, may be several files
+ # Read in Personal word lists, may be several files
for pN in o.wordlists:
try:
pF = open(pN, "r")
@@ -119,7 +119,7 @@ if __name__ == "__main__":
pF.close()
unknWords = {}
- #Find unknown words and count number of occurrences for each.
+ # Find unknown words and count number of occurrences for each.
for text in textF.readlines():
utext = unicode(text, "utf-8")
if o.verbose:
@@ -142,7 +142,7 @@ if __name__ == "__main__":
unknWords[err.word] = 1
textF.close()
- #Sort alphabetically and print out as count word
+ # Sort alphabetically and print out as count word
wlist = unknWords.keys()
wlist.sort()
for w in wlist: