diff options
| author | Guido van Rossum <guido@python.org> | 2001-01-14 23:29:48 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2001-01-14 23:29:48 +0000 |
| commit | e10d75565e88b96e3e46387b605bea95179b791c (patch) | |
| tree | 6c536f0e2890d8abecaf8b9108883a5b49433ad5 /Lib | |
| parent | dcdfa31e6c7f16f95694c1a52bd193d4dbb2de5d (diff) | |
| download | cpython-e10d75565e88b96e3e46387b605bea95179b791c.tar.gz | |
- Don't hardcode Unix filename syntax when opening ~/.pdbrc.
- Conform to standard coding style in a few more places.
Diffstat (limited to 'Lib')
| -rwxr-xr-x | Lib/pdb.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py index f4a0c89f4c..697fb88d3c 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): |
