Skip to content

Commit 1fd2c8c

Browse files
committed
Run Ruff format
1 parent e75d4b2 commit 1fd2c8c

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

shapefile.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2777,10 +2777,8 @@ def field(self, name, fieldType="C", size="50", decimal=0):
27772777

27782778
# Begin Testing
27792779
def _get_doctests():
2780-
2781-
2782-
27832780
import doctest
2781+
27842782
doctest.NORMALIZE_WHITESPACE = 1
27852783

27862784
# run tests
@@ -2802,9 +2800,9 @@ def _get_no_network_doctests(examples):
28022800
if 'sf = shapefile.Reader("https://' in example.source:
28032801
globals_from_network_doctests.add("sf")
28042802
continue
2805-
lhs = example.source.partition('=')[0]
2803+
lhs = example.source.partition("=")[0]
28062804

2807-
for target in lhs.split(','):
2805+
for target in lhs.split(","):
28082806
target = target.strip()
28092807
if target in globals_from_network_doctests:
28102808
globals_from_network_doctests.remove(target)
@@ -2816,18 +2814,17 @@ def _get_no_network_doctests(examples):
28162814

28172815

28182816
def _test(verbosity=0):
2819-
28202817
if verbosity == 0:
28212818
print("Getting doctests...")
28222819
tests = _get_doctests()
28232820

2824-
if len(sys.argv) >= 3 and sys.argv[1:3] == ["-m","not network"]:
2825-
2821+
if len(sys.argv) >= 3 and sys.argv[1:3] == ["-m", "not network"]:
28262822
if verbosity == 0:
28272823
print("Removing doctests requiring internet access...")
28282824
tests.examples = list(_get_no_network_doctests(tests.examples))
28292825

28302826
import doctest
2827+
28312828
doctest.NORMALIZE_WHITESPACE = 1
28322829

28332830
# ignore py2-3 unicode differences

0 commit comments

Comments
 (0)