Skip to content

Commit 53613ef

Browse files
committed
simplify path comparison
1 parent d4c6872 commit 53613ef

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Lib/pdb.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,9 +378,7 @@ def __init__(self, completekey='tab', stdin=None, stdout=None, skip=None,
378378
self.rcLines.extend(rcFile)
379379
except OSError:
380380
pass
381-
if os.path.join(
382-
os.path.abspath(os.curdir), ".pdbrc"
383-
) != os.path.expanduser("~/.pdbrc"):
381+
if os.path.abspath(".pdbrc") != os.path.expanduser("~/.pdbrc"):
384382
try:
385383
with open(".pdbrc", encoding='utf-8') as rcFile:
386384
self.rcLines.extend(rcFile)

0 commit comments

Comments
 (0)