Skip to content

Commit

Permalink
Merge pull request #1 from iandees/py3
Browse files Browse the repository at this point in the history
Python 3 support
  • Loading branch information
thisisaaronland authored Jan 31, 2020
2 parents 6eb0a69 + 2281c69 commit 9216c4d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.0
1.0.0
6 changes: 3 additions & 3 deletions mapzen/whosonfirst/sources/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import spec # as in: utils/mk-spec.py > mapzen/whosonfirst/sources/spec.py
from . import spec # as in: utils/mk-spec.py > mapzen/whosonfirst/sources/spec.py

__NAMES__ = {}
__PREFIXES__ = {}
Expand Down Expand Up @@ -62,7 +62,7 @@ def __repr__(self):

def __str__(self):
return self.stringify()

def stringify(self):

fullname = self.details['fullname']
Expand All @@ -71,7 +71,7 @@ def stringify(self):

if not lookup:
return "%s (%s)" % (fullname, name)

return "%s (%s)" % (fullname, lookup)

def lookup_key(self):
Expand Down
2 changes: 1 addition & 1 deletion mapzen/whosonfirst/sources/spec.py

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions scripts/wof-sources-lookup
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if __name__ == '__main__':

options, args = opt_parser.parse_args()

if options.verbose:
if options.verbose:
logging.basicConfig(level=logging.DEBUG)
else:
logging.basicConfig(level=logging.INFO)
Expand All @@ -42,5 +42,3 @@ if __name__ == '__main__':
if not source:
source = mapzen.whosonfirst.sources.get_source_by_id(src)
logging.info("get %s by id %s" % (src, source))


0 comments on commit 9216c4d

Please sign in to comment.