[Git][NTPsec/ntpsec][master] 2 commits: PEP8: E703 statement ends with a semicolon

Eric S. Raymond gitlab at mg.gitlab.com
Tue Oct 18 14:58:16 UTC 2016


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


Commits:
fdf2f35d by Matt Selsky at 2016-10-18T10:56:13-04:00
PEP8: E703 statement ends with a semicolon

- - - - -
84fefe92 by Matt Selsky at 2016-10-18T10:56:13-04:00
Fix tabs for Python3

TabError: inconsistent use of tabs and spaces in indentation

- - - - -


3 changed files:

- ntpstats/ntpviz
- pylib/packet.py
- wafhelpers/configure.py


Changes:

=====================================
ntpstats/ntpviz
=====================================
--- a/ntpstats/ntpviz
+++ b/ntpstats/ntpviz
@@ -1469,7 +1469,7 @@ ntpviz</a>, part of the <a href="https://www.ntpsec.org/">NTPsec project</a>
         index_buffer += VizStats.table_head
         for stat in stats:
             if [] == stat:
-                continue;
+                continue
             for sta in stat:
                 index_buffer += str( sta.table )
                 csvs.append(sta.csv)


=====================================
pylib/packet.py
=====================================
--- a/pylib/packet.py
+++ b/pylib/packet.py
@@ -64,7 +64,7 @@ class Packet:
     def VN_MODE(v, m):          return ((((v) & 7) << 3) | ((m) & 0x7))
 
     @staticmethod
-    def PKT_LI_VN_MODE(l,v,m):  return ((((l) & 3) << 6) | Packet.VN_MODE((v), (m)))
+    def PKT_LI_VN_MODE(l, v, m):  return ((((l) & 3) << 6) | Packet.VN_MODE((v), (m)))
 
     def __init__(self, session, version, mode):
         self.session = session  # Where to get session context
@@ -511,7 +511,7 @@ class Mode6Session:
             try:
                 res = self.getresponse(opcode, associd, not retry)
             except Mode6Exception as e:
-                if retry and e.message in (SERR_TIMEOUT,SERR_INCOMPLETE):
+                if retry and e.message in (SERR_TIMEOUT, SERR_INCOMPLETE):
                     retry = False
                     continue
                 else:


=====================================
wafhelpers/configure.py
=====================================
--- a/wafhelpers/configure.py
+++ b/wafhelpers/configure.py
@@ -98,8 +98,8 @@ def cmd_configure(ctx, config):
         if ctx.options.disable_manpage:
                 ctx.env.DISABLE_MANPAGE = True
 
-	ctx.env.SBINDIR = ctx.options.sbindir
-	ctx.env.MANDIR = ctx.options.mandir
+        ctx.env.SBINDIR = ctx.options.sbindir
+        ctx.env.MANDIR = ctx.options.mandir
 
         from os.path import exists
         from waflib.Utils import subprocess



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/0d1d9b883275261908023a6a7470324810efe434...84fefe9276b11e9bb647a7806163a39978349044
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161018/bdd10324/attachment.html>


More information about the vc mailing list