Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Turris
Sentinel
sn
Commits
a0b5b53e
Verified
Commit
a0b5b53e
authored
Jan 29, 2018
by
Martin Prudek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Function isType renamed -> is_type
parent
89c380a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sn/network.py
sn/network.py
+2
-2
No files found.
sn/network.py
View file @
a0b5b53e
...
@@ -127,7 +127,7 @@ class Resources:
...
@@ -127,7 +127,7 @@ class Resources:
if
sock_name
in
self
.
sock_configs
:
if
sock_name
in
self
.
sock_configs
:
if
(
if
(
type
(
socket
)
==
tuple
type
(
socket
)
==
tuple
and
not
self
.
sock_configs
[
sock_name
].
is
T
ype
(
socket
[
1
])
and
not
self
.
sock_configs
[
sock_name
].
is
_t
ype
(
socket
[
1
])
):
):
raise
SockConfigError
(
"Socket type does not match
\
raise
SockConfigError
(
"Socket type does not match
\
required value!"
)
required value!"
)
...
@@ -227,7 +227,7 @@ class SockConfig:
...
@@ -227,7 +227,7 @@ class SockConfig:
if
int
(
port
)
<
1
or
int
(
port
)
>
65535
:
if
int
(
port
)
<
1
or
int
(
port
)
>
65535
:
raise
SockConfigError
(
"Port number out of range"
,
port
)
raise
SockConfigError
(
"Port number out of range"
,
port
)
def
is
T
ype
(
self
,
socktype
):
def
is
_t
ype
(
self
,
socktype
):
""" Checks whether the socket type of this socket is equal to
""" Checks whether the socket type of this socket is equal to
'socktype' string argument.
'socktype' string argument.
"""
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment