Browse Source

pep8 formatting

Jonas Weinz 11 months ago
parent
commit
138b7c677b
2 changed files with 4 additions and 7 deletions
  1. 2 5
      ServerCore/ConnectionWorker.py
  2. 2 2
      tools/test_client.py

+ 2 - 5
ServerCore/ConnectionWorker.py

@@ -42,8 +42,8 @@ class ConnectionWorker(threading.Thread):
         print("successfully established connection to " + str(self.address))
 
     def _sendChunk(self, chunk_x: int, chunk_y: int, chunk_z: int) -> None:
-        
-        # TODO: world generation should be done by another thread, 
+
+        # TODO: world generation should be done by another thread,
         # just for testing purposes!!
         if not self.world.isChunkKnown(chunk_x, chunk_y, chunk_z):
             self.world.createEmptyChunk(chunk_x, chunk_y, chunk_z)
@@ -66,7 +66,6 @@ class ConnectionWorker(threading.Thread):
             self._sendMessage('bad data')
             raise Exception("bad data received")
 
-
         if data['datatype'] == 'request_chunk':
             chunk_x = int(data['position'][0])
             chunk_y = int(data['position'][1])
@@ -75,8 +74,6 @@ class ConnectionWorker(threading.Thread):
         else:
             self._sendMessage('unknown request')
 
-
-
     def _work(self):
         self.data = self.clientsocket.recv(SOCKETSIZE)
         while len(self.data) > 0:

+ 2 - 2
tools/test_client.py

@@ -3,9 +3,9 @@
 import sys
 sys.path.append("../ServerCore")
 import socket  # noqa
-import json
+import json  # noqa
 from JSONStreamParser import JSONStreamParser  # noqa
-import argparse
+import argparse  # noqa
 
 
 def send_request(host, port, datatype, position, data):