Skip to content

Commit 7dca072

Browse files
scopigrr
authored andcommitted
Python 3 syntax fixes
1 parent 8edeac0 commit 7dca072

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

doc/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
#
160160
# on_rtd is whether we are on readthedocs.org
161161
env_readthedocs = os.environ.get('READTHEDOCS', None)
162-
print env_readthedocs
162+
print(env_readthedocs)
163163

164164
if not env_readthedocs: # only import and set the theme if we're building docs locally
165165
import sphinx_rtd_theme

tests/device/test_WiFiServer/test_WiFiServer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def echo_client_thread():
2424
while len(data) < 1024 and retries < 3:
2525
data += sock.recv(1024)
2626
retries += 1
27-
print 'Received {} bytes'.format(len(data))
27+
print('Received {} bytes'.format(len(data)))
2828
if len(data) != 1024:
2929
raise RuntimeError('client failed to receive response')
3030
count += 1

tests/device/test_http_client/test_http_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def get_data():
5858
def flaskThread():
5959
p = os.path.dirname(os.path.abspath(__file__))
6060
context = (p + '/server.crt', p + '/server.key')
61-
print context
61+
print(context)
6262
app.run(host='0.0.0.0', port=8088, ssl_context=context)
6363
th = Thread(target=flaskThread)
6464
th.start()

0 commit comments

Comments
 (0)