1
0
mirror of https://github.com/mnaberez/py65.git synced 2025-01-19 23:31:03 +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): def _preprocess_line(self, line):
# ignore leading dots # ignore leading dots
while line.startswith('.'): line = line.lstrip('.')
line = line[1:]
# command shortcuts # command shortcuts
for shortcut, command in self._shortcuts.iteritems(): for shortcut, command in self._shortcuts.iteritems():