Skip to content

Commit 90b303b

Browse files
authored
Merge pull request #14 from smartfile/major-version
Use major version to determine URL (allowing minor revisions).
2 parents 44e3aef + 2a64f90 commit 90b303b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎smartfile/__init__.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222

2323
__version__='2.18'
24+
__major__=__version__.split('.')[0]
2425

2526
API_URL='https://app.smartfile.com/'
2627

@@ -41,7 +42,7 @@ def clean_tokens(*args):
4142

4243
classClient(object):
4344
"""Base API client, handles communication, retry, versioning etc."""
44-
def__init__(self, url=None, version=__version__, throttle_wait=True):
45+
def__init__(self, url=None, version=__major__, throttle_wait=True):
4546
self.url=urloros.environ.get('SMARTFILE_API_URL') orAPI_URL
4647
self.version=version
4748
self.throttle_wait=throttle_wait

0 commit comments

Comments
(0)