[Python-checkins] CVS: python/dist/src/Lib pdb.py,1.45,1.46
Guido van Rossum
python-dev@python.org
Sun, 14 Jan 2001 15:29:50 -0800
- Previous message: [Python-checkins] CVS: python/dist/src/Lib SimpleHTTPServer.py,1.12,1.13
- Next message: [Python-checkins] CVS: python/dist/src/Lib ConfigParser.py,1.25,1.26 Cookie.py,1.4,1.5 calendar.py,1.19,1.20 cgi.py,1.57,1.58 chunk.py,1.5,1.6 codecs.py,1.14,1.15 commands.py,1.13,1.14 copy.py,1.17,1.18 dis.py,1.27,1.28 dospath.py,1.20,1.21 dumbdbm.py,1.6,1.7 filecmp.py,1.8,1.9 fnmatch.py,1.8,1.9 formatter.py,1.15,1.16 fpformat.py,1.7,1.8 ftplib.py,1.46,1.47
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv28588
Modified Files:
pdb.py
Log Message:
- Don't hardcode Unix filename syntax when opening ~/.pdbrc.
- Conform to standard coding style in a few more places.
Index: pdb.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pdb.py,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -r1.45 -r1.46
*** pdb.py 2000/12/12 23:20:45 1.45
--- pdb.py 2001/01/14 23:29:48 1.46
***************
*** 60,77 ****
envHome = os.environ['HOME']
try:
! rcFile = open (envHome + "/.pdbrc")
except IOError:
pass
else:
for line in rcFile.readlines():
! self.rcLines.append (line)
rcFile.close()
try:
! rcFile = open ("./.pdbrc")
except IOError:
pass
else:
for line in rcFile.readlines():
! self.rcLines.append (line)
rcFile.close()
--- 60,77 ----
envHome = os.environ['HOME']
try:
! rcFile = open(os.path.join(envHome, ".pdbrc"))
except IOError:
pass
else:
for line in rcFile.readlines():
! self.rcLines.append(line)
rcFile.close()
try:
! rcFile = open(".pdbrc")
except IOError:
pass
else:
for line in rcFile.readlines():
! self.rcLines.append(line)
rcFile.close()
- Previous message: [Python-checkins] CVS: python/dist/src/Lib SimpleHTTPServer.py,1.12,1.13
- Next message: [Python-checkins] CVS: python/dist/src/Lib ConfigParser.py,1.25,1.26 Cookie.py,1.4,1.5 calendar.py,1.19,1.20 cgi.py,1.57,1.58 chunk.py,1.5,1.6 codecs.py,1.14,1.15 commands.py,1.13,1.14 copy.py,1.17,1.18 dis.py,1.27,1.28 dospath.py,1.20,1.21 dumbdbm.py,1.6,1.7 filecmp.py,1.8,1.9 fnmatch.py,1.8,1.9 formatter.py,1.15,1.16 fpformat.py,1.7,1.8 ftplib.py,1.46,1.47
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]