Opened 5 months ago

Closed 5 months ago

#26739 closed defect (fixed)

SyntaxError with python 3.6 and above

Reported by: atagar Owned by: atagar
Priority: High Milestone:
Component: Core Tor/Stem Version:
Severity: Major Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Great catch from Juan...

BUILDSTDERR:   File "/usr/lib/python3.7/site-packages/stem/util/test_tools.py", line 151
BUILDSTDERR:     self.method.async = self
BUILDSTDERR:                     ^
BUILDSTDERR: SyntaxError: invalid syntax

Took a little head scratching but think I know what's going on. Python 3.6 added a couple new keywords including 'async' and 'await'. This in turn breaks the above since we were using that name.

https://docs.python.org/3/whatsnew/3.6.html#whatsnew36-pep530
https://www.python.org/dev/peps/pep-0530/

Child Tickets

Change History (1)

comment:1 Changed 5 months ago by atagar

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.