Home | History | Annotate | Download | only in Lib

Lines Matching defs:port

108     def port(self):

111 port = netloc.split(':')[1]
112 if port:
113 port = int(port, 10)
114 # verify legal port
115 if (0 <= port <= 65535):
116 return port
203 # make sure "url" is not actually a port number (in which case
207 # not a port number