summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid McMackins II <contact@mcmackins.org>2015-06-08 23:29:56 -0500
committerDavid McMackins II <contact@mcmackins.org>2015-06-08 23:29:56 -0500
commitce38fbffb741f5d38787ce3541f08e0f52848392 (patch)
tree1cbeafe61df80eb404c811e51f18af9cdfb3c7bb
parent02551e15b97ddf91e71d10c2e0b992531497ab37 (diff)
Fixed version number and cleaned up API check function
-rw-r--r--coinfetchapi.py8
-rw-r--r--setup.py2
2 files changed, 4 insertions, 6 deletions
diff --git a/coinfetchapi.py b/coinfetchapi.py
index c4871fc..7eed83d 100644
--- a/coinfetchapi.py
+++ b/coinfetchapi.py
@@ -57,11 +57,9 @@ def print_usage(e):
exit(int(str(e)))
def _keypair(api, r, pair):
- if api == 'btce':
+ if api in ('btce'):
return r.json()[pair]
- elif api == 'bter':
- return r.json()
- elif api == 'ccc':
+ elif api in ('bter', 'ccc'):
return r.json()
raise ValueError('API %s not supported.' %api)
@@ -106,7 +104,7 @@ def coinfetch(args):
if key in ('-h', '--help'):
raise UsageException(0)
elif key in ('-v', '--version'):
- print('''coinfetch 4.0.0
+ print('''coinfetch 4.1.1
Copyright (C) 2015 Delwink, LLC
License AGPLv3: GNU AGPL version 3 only <http://gnu.org/licenses/agpl.html>.
This is free software: you are free to change and redistribute it.
diff --git a/setup.py b/setup.py
index 249e159..9bb0579 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup
setup(
name = 'coinfetch',
- version = '4.1.0',
+ version = '4.1.1',
scripts = ['coinfetch', 'bterfetch', 'cccfetch'],
py_modules = ['coinfetchapi'],