Skip to content

Commit e3c208c

Browse files
committed
Fixed some connection problems with the CPython version
1 parent 090a45c commit e3c208c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

servercom/implementations/common.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"""Helpers, interfaces, etc. common to ALL implementations"""
22

3-
print("Common")
4-
53
# Try to import configuration file
64
try:
75
import client_config

servercom/implementations/cpy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
# Helpers:
18-
class DataClass(Enum):
18+
class DataClass(str, Enum):
1919
TEMPERATURE = "temperature"
2020
HUMIDITY = "humidity"
2121
PRESSURE = "pressure"
@@ -232,7 +232,7 @@ def _do_request(
232232
collect()
233233
if self.v:
234234
print("Receiving response...")
235-
self.wrapped_socket.setblocking(False)
235+
self.wrapped_socket.setblocking(True)
236236
response = b""
237237
while True:
238238
buf = bytearray(256)

0 commit comments

Comments
 (0)