Skip to content

Commit

Permalink
Cleans up autopep8's dirty work
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshiebert committed Jun 10, 2016
1 parent 30f2c23 commit e684e0a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rasterio/crs.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ def is_valid(self):
@property
def is_epsg_code(self):
for val in self.values():
if isinstance(val,
string_types) and val.lower().startswith('epsg'):
if isinstance(val, string_types) and val.lower().startswith('epsg'):
return True
return False

Expand All @@ -48,7 +47,9 @@ def to_string(self):
"""
items = []
for k, v in sorted(filter(
lambda x: x[0] in all_proj_keys and x[1] is not False and (isinstance(x[1], (bool, int, float)) or isinstance(x[1], string_types)),
lambda x: x[0] in all_proj_keys and x[1] is not False and (
isinstance(x[1], (bool, int, float)) or
isinstance(x[1], string_types)),
self.items())):
items.append("+" + "=".join(map(str, filter(
lambda y: (y or y == 0) and y is not True, (k, v)))))
Expand Down

0 comments on commit e684e0a

Please sign in to comment.