summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-01-05 00:36:49 -0300
committerJesusaves <cpntb1@ymail.com>2021-01-05 00:36:49 -0300
commit8cdd82f3e72828744896ba94d359460ce773abd9 (patch)
treed9da26beaa3c85f6f8e658c336a297a0e1ecbd3b
parent70fecd98e393a67b0d59b1e8c389c5511f7b8980 (diff)
downloadserver-8cdd82f3e72828744896ba94d359460ce773abd9.tar.gz
server-8cdd82f3e72828744896ba94d359460ce773abd9.tar.bz2
server-8cdd82f3e72828744896ba94d359460ce773abd9.tar.xz
server-8cdd82f3e72828744896ba94d359460ce773abd9.zip
Fix pyflakes3 warnings
-rw-r--r--battle/main.py2
-rw-r--r--protocol.py2
-rw-r--r--security.py3
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 = []