Fix empty lines in .pronsolerc causing crash

master
Keegi 2011-06-04 23:14:32 +03:00
parent 0ff83c640e
commit 1a37c6ee92
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ class pronsole(cmd.Cmd):
try:
with open(os.path.join(os.path.expanduser("~"),".pronsolerc")) as rc:
for rc_cmd in rc:
if rc_cmd.lstrip()[0] != "#":
if not rc_cmd.lstrip().startswith("#"):
self.onecmd(rc_cmd)
except IOError:
pass