From 9b33bdebbc251dd5ca916307c7f96d2870a854fc Mon Sep 17 00:00:00 2001 From: hugovk Date: Mon, 11 May 2015 13:47:00 +0300 Subject: [PATCH] Release 0.2.0 --- fino.py | 9 ++++----- setup.py | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/fino.py b/fino.py index 427f5dd..60a1bba 100644 --- a/fino.py +++ b/fino.py @@ -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 @@ -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')) @@ -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( @@ -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 diff --git a/setup.py b/setup.py index ff05e46..d409a28 100755 --- a/setup.py +++ b/setup.py @@ -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"],