[printcore] Switched to use Python if syntax and not Ruby's.

master
Kaz Walker 2013-02-17 14:20:20 -07:00
parent 07fae14c47
commit db88c702ff
1 changed files with 2 additions and 2 deletions

View File

@ -222,7 +222,7 @@ class printcore():
def pause(self):
"""Pauses the print, saving the current position.
"""
return False if !self.printing
if !self.printing: return False
self.paused = True
self.printing = False
self.print_thread.join()
@ -231,7 +231,7 @@ class printcore():
def resume(self):
"""Resumes a paused print.
"""
return False if !self.paused
if !self.paused: return False
self.paused = False
self.printing = True
self.print_thread = Thread(target = self._print)