Skip to content

Commit 4549627

Browse files
committed
fixup: Slightly better comment; return rather than break
1 parent 4a32d6d commit 4549627

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/netrc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ def _parse(self, file, fp, default_netrc):
156156
if _can_security_check() and default_netrc:
157157
for entry in self.hosts.values():
158158
if entry[0] != "anonymous":
159-
# Raises on security issue
159+
# Raises on security issue; once passed once can exit.
160160
self._security_check(fp)
161-
break
161+
return
162162

163163
def _security_check(self, fp):
164164
prop = os.fstat(fp.fileno())

0 commit comments

Comments
 (0)