Commit 80d465c2 authored by kliment's avatar kliment

Merge pull request #336 from KazW/experimental

[printcore] Switched to use Python if syntax and not Ruby's.
parents 07fae14c 0f8d170f
......@@ -222,7 +222,7 @@ class printcore():
def pause(self):
"""Pauses the print, saving the current position.
"""
return False if !self.printing
if not 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 not self.paused: return False
self.paused = False
self.printing = True
self.print_thread = Thread(target = self._print)
......
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