diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-01-05 00:36:49 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-01-05 00:36:49 -0300 |
commit | 8cdd82f3e72828744896ba94d359460ce773abd9 (patch) | |
tree | d9da26beaa3c85f6f8e658c336a297a0e1ecbd3b | |
parent | 70fecd98e393a67b0d59b1e8c389c5511f7b8980 (diff) | |
download | server-8cdd82f3e72828744896ba94d359460ce773abd9.tar.gz server-8cdd82f3e72828744896ba94d359460ce773abd9.tar.bz2 server-8cdd82f3e72828744896ba94d359460ce773abd9.tar.xz server-8cdd82f3e72828744896ba94d359460ce773abd9.zip |
Fix pyflakes3 warnings
-rw-r--r-- | battle/main.py | 2 | ||||
-rw-r--r-- | protocol.py | 2 | ||||
-rw-r--r-- | security.py | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/battle/main.py b/battle/main.py index f93b715..7ce64a9 100644 --- a/battle/main.py +++ b/battle/main.py @@ -443,7 +443,7 @@ def battle(args, token): """ # Erase temporary variables - tmp=[] + del tmp stdout("Party reordered (SKIPPED)") ####################################### diff --git a/protocol.py b/protocol.py index 4ee50c3..5556bc6 100644 --- a/protocol.py +++ b/protocol.py @@ -21,7 +21,7 @@ import utils import player import tavern import battle.main as battle -from consts import ERR_BAD, ERR_DONE, PACKET_NACK, PACKET_ACK +from consts import ERR_BAD, ERR_DONE, PACKET_NACK, PACKET_ACK, PACKET_REGX # self.data structure: <Token> ; <Message> ; <JSON Arguments> def parse(packet, conn): diff --git a/security.py b/security.py index 6a51f79..8667f66 100644 --- a/security.py +++ b/security.py @@ -19,7 +19,8 @@ # Really basic stuff, still better than nothing, though import threading, time, traceback from utils import now, stdout, dl_search, ifte -from consts import BL_UPDATETIME, INT_MAX, BAN_TIME, BAN_AUTHED, BAN_UNAUTHED +from consts import (BL_UPDATETIME, INT_MAX, BAN_TIME, BAN_AUTHED, BAN_UNAUTHED, + PACKET_NACK, PACKET_ACK, PACKET_REGX) blacklist = [] |