mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 17:58:59 +00:00
Fisrt batch of updates. Renaming all the columns into lower case names used.
This commit is contained in:
+2
-2
@@ -27,7 +27,7 @@ class NNTPClientConnector(socketpool.Connector, nntp.NNTPClient):
|
||||
raise ValueError("Bad backend")
|
||||
nntp.NNTPClient.__init__(self, self.host, self.port, username, password, timeout=timeout, use_ssl=use_ssl)
|
||||
self.id = self.socket.getsockname()[1]
|
||||
print(bcolors.PRIMARY + "New NNTP connection to %s established with ID #%5d" %
|
||||
print(bcolors.PRIMARY + "New NNTP connection to %s established with id #%5d" %
|
||||
(self.host, self.id) + bcolors.ENDC)
|
||||
self._connected = True
|
||||
self.xfeature_compress_gzip()
|
||||
@@ -54,7 +54,7 @@ class NNTPClientConnector(socketpool.Connector, nntp.NNTPClient):
|
||||
return self._life
|
||||
|
||||
def invalidate(self):
|
||||
print(bcolors.PRIMARY + "Disconnecting from NNTP connection ID #%5d after %d seconds." %
|
||||
print(bcolors.PRIMARY + "Disconnecting from NNTP connection id #%5d after %d seconds." %
|
||||
(self.id, (time.time() - self._start_time)) + bcolors.ENDC)
|
||||
self.close()
|
||||
self._connected = False
|
||||
|
||||
Reference in New Issue
Block a user