Bug #8475
closedPython3 Syntax errors
0%
Description
Looks like the current py3 branch has 2 syntax errors. The first I discovered was in chirp/ui/mainapp.py on line 1140.
print query
needs to be
print(query)
Also, in chirp/drivers/vx6.py on line 874
except Exception, e:
needs to be
except (Exception, e):
After these changes were made py3 worked as I expected it to.
Files
Updated by Matthew Poletiek almost 4 years ago
- File py3syntax.patch py3syntax.patch added
Created the following patch to fix this.
Updated by Matthew Poletiek almost 4 years ago
- File py3syntax.patch py3syntax.patch added
Better Patch
Updated by Matthew Poletiek almost 4 years ago
Updated patch with better syntax.
@except (Exception, e):@ wasn't correct.
Correct answer is @except Exception as e:@
Updated by Bernhard Hailer almost 4 years ago
Matthew, has your patch been posted to the developer's mailing list, has it been accepted? Thanks.
Updated by Matthew Poletiek almost 4 years ago
Bernhard Hailer wrote:
Matthew, has your patch been posted to the developer's mailing list, has it been accepted? Thanks.
I haven't seen any movement on the py3 branch since February last year. I've made multiple posts to the dev list about this branch.
I've since forked this branch and have been working on my own repo here: https://github.com/mpoletiek/py3-CHIRP
Waiting until this February to make some irreversible changes to my own repo.
Updated by Dan Smith about 2 years ago
- Status changed from New to Rejected
Patches for py3 should go to github.