From 47bfba83eeab5fe5dd97cf7ffa90ccc4133c25d6 Mon Sep 17 00:00:00 2001 From: nickthetait Date: Mon, 22 Jun 2015 11:21:48 -0600 Subject: [PATCH] Fix indentation and replace spaces with tabs --- Cura/gui/printWindow.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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): -- 2.30.2