Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 74cf6dd

Browse filesBrowse files
committed
Let Ruff adjust code style (lead with ands, instead of trailing).
1 parent 0fdcab1 commit 74cf6dd
Copy full SHA for 74cf6dd

File tree

Expand file treeCollapse file tree

1 file changed

+7
-9
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-9
lines changed

‎shapefile.py

Copy file name to clipboardExpand all lines: shapefile.py
+7-9Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -855,15 +855,13 @@ def __dir__(self):
855855
return default + fnames
856856

857857
def __eq__(self, other):
858-
return (isinstance(other, self.__class__) and
859-
self.__field_positions == other.__field_positions and
860-
self.oid == other.oid and
861-
len(self) == len(other) and
862-
all(val_self == val_other
863-
for val_self, val_other in izip(self, other)
864-
)
865-
)
866-
858+
return (
859+
isinstance(other, self.__class__)
860+
and self.__field_positions == other.__field_positions
861+
and self.oid == other.oid
862+
and len(self) == len(other)
863+
and all(val_self == val_other for val_self, val_other in izip(self, other))
864+
)
867865

868866

869867
class ShapeRecord(object):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.