1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-11-18 15:06:35 +00:00

Use lstrip() to remove leading dots.

This commit is contained in:
Mike Naberezny 2009-08-20 19:07:25 -07:00
parent c714480580
commit 6b61cdf5b3

View File

@ -69,8 +69,7 @@ class Monitor(cmd.Cmd):
def _preprocess_line(self, line):
# ignore leading dots
while line.startswith('.'):
line = line[1:]
line = line.lstrip('.')
# command shortcuts
for shortcut, command in self._shortcuts.iteritems():