summary refs log tree commit diff homepage
path: root/brutalmaze/game.py
diff options
context:
space:
mode:
Diffstat (limited to 'brutalmaze/game.py')
-rw-r--r--brutalmaze/game.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/brutalmaze/game.py b/brutalmaze/game.py
index ecf23d6..8b11228 100644
--- a/brutalmaze/game.py
+++ b/brutalmaze/game.py
@@ -16,28 +16,28 @@
 # You should have received a copy of the GNU Affero General Public License
 # along with Brutal Maze.  If not, see <https://www.gnu.org/licenses/>.
 
-__version__ = '0.9.3'
+__version__ = '0.9.4'
 
 import re
 from argparse import ArgumentParser, FileType, RawTextHelpFormatter
 from configparser import ConfigParser
 from contextlib import redirect_stdout
 from io import StringIO
-from math import atan2, radians, pi
+from math import atan2, pi, radians
 from os.path import join as pathjoin, pathsep
-from socket import socket, SOL_SOCKET, SO_REUSEADDR
+from socket import SO_REUSEADDR, SOL_SOCKET, socket
 from sys import stdout
 from threading import Thread
 
 with redirect_stdout(StringIO()): import pygame
+from appdirs import AppDirs
+from palace import Context, Device, free, use_context
 from pygame import KEYDOWN, MOUSEBUTTONUP, QUIT, VIDEORESIZE
 from pygame.time import Clock, get_ticks
-from palace import free, use_context, Device, Context
-from appdirs import AppDirs
 
-from .constants import SETTINGS, ICON, SFX, SFX_NOISE, HERO_SPEED, MIDDLE
+from .constants import HERO_SPEED, ICON, MIDDLE, SETTINGS, SFX, SFX_NOISE
 from .maze import Maze
-from .misc import sign, deg, join, play
+from .misc import deg, join, play, sign
 
 
 class ConfigReader:
@@ -277,8 +277,8 @@ class Game:
                 connection.send(data)
                 try:
                     buf = connection.recv(7)
-                except:     # client is closed or timed out
-                    break
+                except:     # noqa
+                    break   # client is closed or timed out
                 if not buf: break
                 try:
                     move, angle, attack = map(int, buf.decode().split())