Thor77 / Blueproximity

Run a command once a bluetooth device is in/out of a range
GNU General Public License v2.0
66 stars 15 forks source link

SyntaxError in proximity.py on line 671 #29

Closed Thor77 closed 8 years ago

Thor77 commented 8 years ago

Error Message:

File "proximity.py", line 671
class ScanDevice\(\):
^
SyntaxError: invalid syntax

I have changend the line in proximity.py to

class ScanDevice:

This worked for me ...

System Gentoo :)

best regards, Ronny

Thor77 commented 8 years ago

Logged In: YES user_id=1312539 Originator: NO

This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). (By sf-robot)

Thor77 commented 8 years ago

Logged In: YES user_id=114903 Originator: NO

Once again, it would be nice to hear from you what python version you are using here. Bye Lars (By highno)

Thor77 commented 8 years ago

Logged In: YES user_id=114903 Originator: NO

thanks for the info - I'll try to change the inherit thing. Ronny, could you please tell me the python version you are using? Thanks. (By highno)

Thor77 commented 8 years ago

Logged In: YES user_id=1770670 Originator: NO

Better coding style is to inherit from "object":

class ScanDevice (object): """ ...

Greets (By wiwi1983)