From: Steven Tobin Date: Tue, 9 Sep 2014 02:24:09 +0000 (+1000) Subject: python3 compatibility in example_import X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=cd8506105c69b3cec09843eca2d3d5baca5a3fb6;p=redacted-XKCD-password-generator.git python3 compatibility in example_import --- diff --git a/setup.py b/setup.py index f534670..d6af640 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup setup( name='xkcdpass', - version='1.2.1', + version='1.2.2', author='Steven Tobin', author_email='steventtobin@gmail.com', url='https://github.com/redacted/XKCD-password-generator', diff --git a/xkcdpass/example_import.py b/xkcdpass/example_import.py index 93d1eb7..c104db0 100644 --- a/xkcdpass/example_import.py +++ b/xkcdpass/example_import.py @@ -12,6 +12,6 @@ def random_capitalisation(s, chance): words = xp.locate_wordfile() mywords = xp.generate_wordlist(wordfile=words, min_length=5, max_length=8) raw_password = xp.generate_xkcdpassword(mywords) - + for i in range(5): - print random_capitalisation(raw_password, i/10.0) + print(random_capitalisation(raw_password, i/10.0))