Bugfix for .pronsolerc reading

stripping code was wrong and unneeded
master
Keegi 2011-06-01 18:05:28 +03:00
parent 0c5ae5e6b9
commit 19ec2502e7
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class pronsole(cmd.Cmd):
with open(os.path.join(os.path.expanduser("~"),".pronsolerc")) as rc:
for rc_cmd in rc:
if rc_cmd.lstrip()[0] != "#":
self.onecmd(rc_cmd.rstrip(r"\r\n"))
self.onecmd(rc_cmd)
except IOError:
pass
print "Welcome to the printer console! Type \"help\" for a list of available commands."