Commit dafc89e8 authored by Guillaume Seguin's avatar Guillaume Seguin

Cleanup

parent c164d0d1
...@@ -254,7 +254,7 @@ class printcore(): ...@@ -254,7 +254,7 @@ class printcore():
print "Not connected to printer." print "Not connected to printer."
def _print(self): def _print(self):
if self.startcb is not None: if self.startcb:
#callback for printing started #callback for printing started
try: self.startcb() try: self.startcb()
except: pass except: pass
...@@ -263,7 +263,7 @@ class printcore(): ...@@ -263,7 +263,7 @@ class printcore():
self.sentlines = {} self.sentlines = {}
self.log = [] self.log = []
self.sent = [] self.sent = []
if self.endcb is not None: if self.endcb:
#callback for printing done #callback for printing done
try: self.endcb() try: self.endcb()
except: pass except: pass
...@@ -312,8 +312,8 @@ class printcore(): ...@@ -312,8 +312,8 @@ class printcore():
if self.printer: if self.printer:
self.sent.append(command) self.sent.append(command)
if self.loud: if self.loud:
print "SENT: ",command print "SENT: ", command
if self.sendcb is not None: if self.sendcb:
try: self.sendcb(command) try: self.sendcb(command)
except: pass except: pass
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment