mirror of
https://github.com/rasterio/rasterio.git
synced 2026-02-01 14:34:43 +00:00
Cleans up autopep8's dirty work
This commit is contained in:
parent
30f2c23a57
commit
e684e0aa9c
@ -33,8 +33,7 @@ class CRS(_CRS):
|
||||
@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
|
||||
|
||||
@ -48,7 +47,9 @@ class CRS(_CRS):
|
||||
"""
|
||||
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)))))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user