Skip to content

Commit 0218ea6

Browse files
committed
Remove redundant parentheses
1 parent 43554c2 commit 0218ea6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dpath/segments.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def get(obj, segments):
8585
get(obj, segments) -> value
8686
"""
8787
current = obj
88-
for (i, segment) in enumerate(segments):
88+
for i, segment in enumerate(segments):
8989
if leaf(current):
9090
raise PathNotFound(f"Path: {segments}[{i}]")
9191

@@ -214,7 +214,7 @@ def match(segments, glob):
214214
# If we were successful in matching up the lengths, then we can
215215
# compare them using fnmatch.
216216
if path_len == len(ss_glob):
217-
for (s, g) in zip(map(int_str, segments), map(int_str, ss_glob)):
217+
for s, g in zip(map(int_str, segments), map(int_str, ss_glob)):
218218
# Match the stars we added to the glob to the type of the
219219
# segment itself.
220220
if g is STAR:

0 commit comments

Comments
 (0)