Commit 0f8d170f authored by Kaz Walker's avatar Kaz Walker

Switched to using "not" instead of ! modifier.

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