diff --git a/.travis.yml b/.travis.yml index 9951e33..c0b724e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ python: - "3.3" - "3.4" - "3.5" + - "3.6" # Command to install dependency. install: "pip install -r requirements.txt" diff --git a/chuck/__init__.py b/chuck/__init__.py index c4e082b..4400960 100644 --- a/chuck/__init__.py +++ b/chuck/__init__.py @@ -19,6 +19,12 @@ def __init__(self): self.joke = None self.categories = None + def __repr__(self): + return '<{cls}: {joke}>'.format( + cls=self.__class__.__name__, + joke=self.joke + ) + class ChuckNorris(object): diff --git a/setup.py b/setup.py index 0de91b9..634f4bc 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setup( name='chuck-norris-python', - version='1.0', + version='1.1', packages=['chuck'], license='MIT', long_description='Python wrapper for "The Internet Chuck Norris Database" http://www.icndb.com/api/',