Skip to content

Commit 9d490be

Browse files
committed
Updated import issues, increased version to 5.4 for pip
1 parent 6a26616 commit 9d490be

File tree

6 files changed

+15
-8
lines changed

6 files changed

+15
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ For comments, issues, requests, please contact via Github at the above website
135135

136136
Changelog
137137
---------
138-
- Version 0.5.3 > Updated __init__.py
138+
- Version 0.5.3/4 > Updated __init__.py
139139
- Version 0.5.2 > Updated setup.py
140140
- Version 0.5.1 > Python 3.4 support
141141
- Version 0.5 > Removed django.contrib.gis.geos dependency, remove Django from the pip requirements, moved requirements to separate folder, updated tests, mocked tests

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ For comments, issues, requests, please contact via Github at the above website
158158

159159
Changelog
160160
---------
161+
- Version 0.5.3/4 > Updated __init__.py
162+
- Version 0.5.2 > Updated setup.py
161163
- Version 0.5.1 > Python 3.4 support
162164
- Version 0.5 > Removed django.contrib.gis.geos dependency, remove Django from the pip requirements, moved requirements to separate folder, updated tests, mocked tests
163165
- Version 0.4 > DepreciationWarning: def coordinates(self) will not be supported in version 0.5

__version__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

pyzillow/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
__author__ = 'Hannes Hapke'
22
__email__ = '[email protected]'
3-
__version__ = '0.5.3'
3+
__version__ = '0.5.4'

pyzillow/pyzillow.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from xml.etree import cElementTree as ElementTree # for zillow API
55

66
from .pyzillowerrors import ZillowError, ZillowFail, ZillowNoResults
7-
from __version__ import VERSION
7+
import pyzillow
88

99

1010
class ZillowWrapper(object):
@@ -51,7 +51,11 @@ def get_data(self, url, params):
5151
url=url,
5252
params=params,
5353
headers={
54-
'User-Agent': 'pyzillow/' + VERSION + ' (Python)'
54+
'User-Agent': ''.join([
55+
'pyzillow/',
56+
pyzillow.__version__,
57+
' (Python)'
58+
])
5559
})
5660
except (
5761
requests.exceptions.ConnectionError,
@@ -69,7 +73,8 @@ def get_data(self, url, params):
6973
except ElementTree.ParseError:
7074
print (
7175
"Zillow response is not a valid XML (%s)" % (
72-
params['address'])
76+
params['address']
77+
)
7378
)
7479
raise ZillowFail
7580

@@ -79,7 +84,8 @@ def get_data(self, url, params):
7984
if not response.findall('response'):
8085
print (
8186
"Zillow returned no results for (%s)" % (
82-
params['address'])
87+
params['address']
88+
)
8389
)
8490
raise ZillowNoResults
8591
return response

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
setup(
3333
name='pyzillow',
34-
version='0.5.3',
34+
version='0.5.4',
3535
description='Python API wrapper for Zillow\'s API',
3636
long_description=readme + '\n\n' + doclink + '\n\n' + history,
3737
author='Hannes Hapke',

0 commit comments

Comments
 (0)