ConfigTreeNode.py
changeset 1739 ec153828ded2
parent 1738 d2e979738700
child 1740 b789b695b5c6
--- a/ConfigTreeNode.py	Mon Aug 14 23:38:28 2017 +0300
+++ b/ConfigTreeNode.py	Tue Aug 15 12:17:51 2017 +0300
@@ -453,10 +453,10 @@
         while res in AllChannels:  # While channel not free
             if res < CurrentChannel:  # Want to go down ?
                 res -=  1  # Test for n-1
-                if res < 0 :
+                if res < 0:
                     self.GetCTRoot().logger.write_warning(_("Cannot find lower free IEC channel than %d\n") % CurrentChannel)
                     return CurrentChannel  # Can't go bellow 0, do nothing
-            else :  # Want to go up ?
+            else:  # Want to go up ?
                 res +=  1  # Test for n-1
         # Finally set IEC Channel
         self.BaseParams.setIEC_Channel(res)