We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 090a45c commit e3c208cCopy full SHA for e3c208c
servercom/implementations/common.py
@@ -1,7 +1,5 @@
1
"""Helpers, interfaces, etc. common to ALL implementations"""
2
3
-print("Common")
4
-
5
# Try to import configuration file
6
try:
7
import client_config
servercom/implementations/cpy.py
@@ -15,7 +15,7 @@
15
16
17
# Helpers:
18
-class DataClass(Enum):
+class DataClass(str, Enum):
19
TEMPERATURE = "temperature"
20
HUMIDITY = "humidity"
21
PRESSURE = "pressure"
@@ -232,7 +232,7 @@ def _do_request(
232
collect()
233
if self.v:
234
print("Receiving response...")
235
- self.wrapped_socket.setblocking(False)
+ self.wrapped_socket.setblocking(True)
236
response = b""
237
while True:
238
buf = bytearray(256)
0 commit comments