Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Commits on Source (2)
PEP8: E703 statement ends with a semicolon
· fdf2f35d
Matt Selsky
authored
Oct 18, 2016
and
Eric S. Raymond
committed
Oct 18, 2016
fdf2f35d
Fix tabs for Python3
· 84fefe92
Matt Selsky
authored
Oct 18, 2016
and
Eric S. Raymond
committed
Oct 18, 2016
TabError: inconsistent use of tabs and spaces in indentation
84fefe92
Hide whitespace changes
Inline
Side-by-side
ntpstats/ntpviz
View file @
84fefe92
...
...
@@ -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
View file @
84fefe92
...
...
@@ -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
View file @
84fefe92
...
...
@@ -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
...
...