[Git][NTPsec/ntpsec][master] Fix inconsistent tab vs space usage

Eric S. Raymond gitlab at mg.gitlab.com
Sat Dec 31 11:52:57 UTC 2016


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
9e25052b by Sanjeev Gupta at 2016-12-31T06:52:12-05:00
Fix inconsistent tab vs space usage

Python3 barfs on this

- - - - -


1 changed file:

- ntpclients/ntpkeygen


Changes:

=====================================
ntpclients/ntpkeygen
=====================================
--- a/ntpclients/ntpkeygen
+++ b/ntpclients/ntpkeygen
@@ -48,7 +48,7 @@ def fheader(
 	owner	# owner name 
         ):
     try:
-	filename = "ntpkey_%s_%s.%u" % (file,  owner, int(time.time())) 
+        filename = "ntpkey_%s_%s.%u" % (file,  owner, int(time.time())) 
         orig_umask = os.umask(stat.S_IWGRP | stat.S_IRWXO)
         wp = open(filename, "w")
         os.umask(orig_umask)
@@ -56,12 +56,12 @@ def fheader(
         linkname = "ntp.keys"
         if os.path.exists(linkname):
             os.remove(linkname)		# The symlink() line below matters 
-	os.symlink(filename, linkname)
+        os.symlink(filename, linkname)
 
-	sys.stderr.write("Generating new %s file and link\n" % ulink)
-	sys.stderr.write("%s->%s\n" % (linkname, filename))
-	wp.write("# %s\n# %s\n" % (filename, time.ctime()))
-	return wp
+        sys.stderr.write("Generating new %s file and link\n" % ulink)
+        sys.stderr.write("%s->%s\n" % (linkname, filename))
+        wp.write("# %s\n# %s\n" % (filename, time.ctime()))
+        return wp
     except IOError:
         sys.stderr.write("Key file creation or link failed.\n")
         raise SystemExit(1)



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


More information about the vc mailing list