From 752d3f557e95cda98a8b50808cfe2f2d0b8767eb Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 14 Jan 2001 23:29:48 +0000 Subject: - Don't hardcode Unix filename syntax when opening ~/.pdbrc. - Conform to standard coding style in a few more places. --- Lib/pdb.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Lib/pdb.py b/Lib/pdb.py index f4a0c89..697fb88 100755 --- a/Lib/pdb.py +++ b/Lib/pdb.py @@ -59,20 +59,20 @@ class Pdb(bdb.Bdb, cmd.Cmd): if os.environ.has_key('HOME'): envHome = os.environ['HOME'] try: - rcFile = open (envHome + "/.pdbrc") + rcFile = open(os.path.join(envHome, ".pdbrc")) except IOError: pass else: for line in rcFile.readlines(): - self.rcLines.append (line) + self.rcLines.append(line) rcFile.close() try: - rcFile = open ("./.pdbrc") + rcFile = open(".pdbrc") except IOError: pass else: for line in rcFile.readlines(): - self.rcLines.append (line) + self.rcLines.append(line) rcFile.close() def reset(self): -- cgit v0.12