From: nickthetait Date: Mon, 22 Jun 2015 17:21:48 +0000 (-0600) Subject: Fix indentation and replace spaces with tabs X-Git-Tag: lulzbot-15.02.1-2.01~73 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=47bfba83eeab5fe5dd97cf7ffa90ccc4133c25d6;p=cura.git Fix indentation and replace spaces with tabs --- diff --git a/Cura/gui/printWindow.py b/Cura/gui/printWindow.py index b92150df..7ae0af12 100644 --- a/Cura/gui/printWindow.py +++ b/Cura/gui/printWindow.py @@ -46,12 +46,12 @@ elif sys.platform.startswith('darwin'): preventComputerFromSleeping.assertionID = None else: def preventComputerFromSleeping(frame, prevent): - if os.path.isfile("/usr/bin/xdg-screensaver"): - try: - cmd = ['xdg-screensaver', 'suspend' if prevent else 'resume', str(frame.GetHandle())] - subprocess.call(cmd) - except: - pass + if os.path.isfile("/usr/bin/xdg-screensaver"): + try: + cmd = ['xdg-screensaver', 'suspend' if prevent else 'resume', str(frame.GetHandle())] + subprocess.call(cmd) + except: + pass class printWindowPlugin(wx.Frame): def __init__(self, parent, printerConnection, filename):