Skip to content

Commit

Permalink
Release 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed May 11, 2015
1 parent 55fe43e commit 9b33bde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions fino.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# encoding: utf-8
"""
Given an integer, output the Finnish word for that number.
Output the Finnish word for a given integer.
"""
from __future__ import print_function, unicode_literals
import argparse
Expand Down Expand Up @@ -59,8 +59,8 @@
LIST_OF_TENS = sorted(SINGULAR_TENS.keys())


# Windows cmd.exe cannot do Unicode so encode first
def print_it(text):
""" Windows cmd.exe cannot do Unicode so encode first """
print(text.encode('utf-8'))


Expand Down Expand Up @@ -115,8 +115,7 @@ def to_finnish(number):

if __name__ == "__main__":
parser = argparse.ArgumentParser(
description="Given an integer, "
"output the Finnish word for that number.",
description="Output the Finnish word for a given integer.",
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('number', type=int, help="An input integer")
parser.add_argument(
Expand All @@ -133,7 +132,7 @@ def to_finnish(number):
else:
end = int(args.end)
i = args.number
while(i < end+1):
while i < end+1:
print_it(str(i) + " " + to_finnish(i))
i += 1

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

setup(
name="fino",
version="0.1.0",
description="Given an integer, output the Finnish word for that number.",
version="0.2.0",
description="Output the Finnish word for a given integer.",
url="https://github.com/hugovk/fino",
author="hugovk",
keywords=["Finnish", "suomi", "numbers", "integers"],
Expand Down

0 comments on commit 9b33bde

Please sign in to comment.