mirror of
https://github.com/mnaberez/py65.git
synced 2025-01-02 03:29:26 +00:00
Removed unnecessary use of os.linesep.
This commit is contained in:
parent
584c76e6e8
commit
d741fafcf8
@ -1,6 +1,5 @@
|
||||
from py65.utils.conversions import convert_to_bin, convert_to_bcd, itoa
|
||||
from py65.utils.devices import make_instruction_decorator
|
||||
from os import linesep
|
||||
|
||||
class MPU:
|
||||
# vectors
|
||||
@ -40,7 +39,7 @@ class MPU:
|
||||
flags = itoa(self.flags, 2).rjust(8, '0')
|
||||
indent = ' ' * (len(self.name) + 2)
|
||||
|
||||
out = "%s PC AC XR YR SP NV-BDIZC" + linesep + \
|
||||
out = "%s PC AC XR YR SP NV-BDIZC\n" + \
|
||||
"%s: %04x %02x %02x %02x %02x %s"
|
||||
|
||||
return out % (indent, self.name,
|
||||
|
@ -101,17 +101,17 @@ class Monitor(cmd.Cmd):
|
||||
self._mpu.memory = m
|
||||
|
||||
def _update_prompt(self):
|
||||
self.prompt = os.linesep + repr(self._mpu) + os.linesep + '.'
|
||||
self.prompt = "\n%s\n." % repr(self._mpu)
|
||||
|
||||
def _output(self, stuff):
|
||||
if stuff is not None:
|
||||
self.stdout.write(stuff + os.linesep)
|
||||
self.stdout.write(stuff + "\n")
|
||||
|
||||
def help_version(self):
|
||||
self._output("version\t\tDisplay Py65 version information.")
|
||||
|
||||
def do_version(self, args):
|
||||
self._output(os.linesep + "Py65 Monitor")
|
||||
self._output("\nPy65 Monitor")
|
||||
|
||||
def help_help(self):
|
||||
self._output("help\t\tPrint a list of available actions.")
|
||||
|
Loading…
Reference in New Issue
Block a user