[Git][NTPsec/ntpsec][master] Python3: Fix mixed tabs/spaces in ntpdig

Matt Selsky gitlab at mg.gitlab.com
Sat Dec 31 17:12:34 UTC 2016


Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
def1f112 by Matt Selsky at 2016-12-31T12:09:01-05:00
Python3: Fix mixed tabs/spaces in ntpdig

- - - - -


1 changed file:

- ntpclients/ntpdig


Changes:

=====================================
ntpclients/ntpdig
=====================================
--- a/ntpclients/ntpdig
+++ b/ntpclients/ntpdig
@@ -388,15 +388,15 @@ if __name__ == '__main__':
             print("rec-org t21: %f  xmt-dst t34: %f" % (pkt.t2() - pkt.t1(), pkt.t3() - pkt.t4()))
         adjusted = step and (not slew or (slew and (abs(offset) > steplimit)))
         report(pkt, json)
-	# If we can step but we cannot slew, then step.
-	# If we can step or slew and |offset| > steplimit, then step.
+        # If we can step but we cannot slew, then step.
+        # If we can step or slew and |offset| > steplimit, then step.
         rc = True
         offset = pkt.adjust()
         ntp.ntpc.setprogname("ntpdig")
         if adjusted:
-		rc = ntp.ntpc.step_systime(offset)
-	elif slew:
-		rc = ntp.ntpc.adj_systime(offset)
+            rc = ntp.ntpc.step_systime(offset)
+        elif slew:
+            rc = ntp.ntpc.adj_systime(offset)
         if rc:
             raise SystemExit(0)
         else:



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/def1f1129cc2ffb3dbc43a254597ec305cbd9b7f
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20161231/36a9dd8b/attachment.html>


More information about the vc mailing list