Unverified Commit a0b5b53e authored by Martin Prudek's avatar Martin Prudek 🌀
Browse files

Function isType renamed -> is_type

parent 89c380a0
......@@ -127,7 +127,7 @@ class Resources:
if sock_name in self.sock_configs:
if (
type(socket) == tuple
and not self.sock_configs[sock_name].isType(socket[1])
and not self.sock_configs[sock_name].is_type(socket[1])
raise SockConfigError("Socket type does not match\
required value!")
......@@ -227,7 +227,7 @@ class SockConfig:
if int(port) < 1 or int(port) > 65535:
raise SockConfigError("Port number out of range", port)
def isType(self, socktype):
def is_type(self, socktype):
""" Checks whether the socket type of this socket is equal to
'socktype' string argument.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment