Mercurial > ppgen
diff ppgen.py @ 6:81f75c9aac84
Cleanup, minor: improves Comments. Bumps copyright.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Mon, 13 Feb 2017 08:38:06 +0100 |
parents | f8e24b2b6b6a |
children | 8b2f8f439817 |
line wrap: on
line diff
--- a/ppgen.py Fri Feb 10 16:59:12 2017 +0100 +++ b/ppgen.py Mon Feb 13 08:38:06 2017 +0100 @@ -21,7 +21,7 @@ https://bitbucket.org/s_l_teichmann/ppgen -Copyright 2016 by Intevation GmbH. +Copyright 2016, 2017 by Intevation GmbH. Author: Bernhard E. Reiter <bernhard@intevation.de> This file is Free Software under the Apache 2.0 license and thus @@ -82,11 +82,11 @@ TODO: add option to use both languages for people that speak them both? """ - dset = set() # using the datatype 'set' to aviod duplicates + dset = set() # using the datatype 'set' to avoid duplicates splitter = re.compile(r"""\ \|\ # first pattern ' | ' |;\ # second pattern '; ' - |(?<=\S)/(?=\S) # 3.: '\' surrounded by chars + |(?<=\S)/(?=\S) # 3.: '/' surrounded by chars |\s+ # by whitespace """, re.VERBOSE) @@ -131,7 +131,7 @@ howMany = 4 - # use a dictionary with lower case words for a simple check if + # use a dictionary with lower cased words for a simple check if # our random source is okay print("\nGenerated passphrase with {} randomly selected words:\n".format( howMany))