Issue Details (XML | Word | Printable)

Key: PYFB-61
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Pavel Cisar
Reporter: Philippe Makowski
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Firebird driver for Python

Not compatible Python 3 syntax

Created: 11/Jan/16 09:08 AM   Updated: 15/Feb/17 12:02 PM
Component/s: None
Affects Version/s: 1.5
Fix Version/s: 1.5.1


 Description  « Hide
Unfortunately , version 1.5, it's not Python 3 compatible :

+ /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s'
Traceback (most recent call last):
  File "setup.py", line 7, in <module>
    from fdb import __version__
  File "/home/iurt/rpmbuild/BUILD/fdb-1.5/fdb/__init__.py", line 23, in <module>
    from fdb.fbcore import *
  File "/home/iurt/rpmbuild/BUILD/fdb-1.5/fdb/fbcore.py", line 35, in <module>
    from . import schema
  File "/home/iurt/rpmbuild/BUILD/fdb-1.5/fdb/schema.py", line 2524
    if col.generator.inital_value <> 0:
                                   ^
SyntaxError: invalid syntax


we need to change :
if col.generator.inital_value <> 0:

for :
if col.generator.inital_value != 0:

May be there is other place to check

cf :
https://docs.python.org/3/whatsnew/3.0.html#overview-of-syntax-changes

Removed Syntax :

Removed <> (use != instead).




 All   Comments   Change History   Subversion Commits      Sort Order: Descending order - Click to sort in ascending order
There are no comments yet on this issue.