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

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 build '--executable=/usr/bin/python3 -s'
Traceback (most recent call last):
  File "", line 7, in <module>
    from fdb import __version__
  File "/home/iurt/rpmbuild/BUILD/fdb-1.5/fdb/", line 23, in <module>
    from fdb.fbcore import *
  File "/home/iurt/rpmbuild/BUILD/fdb-1.5/fdb/", line 35, in <module>
    from . import schema
  File "/home/iurt/rpmbuild/BUILD/fdb-1.5/fdb/", 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 :

Removed Syntax :

Removed <> (use != instead).

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