I am analyzing the source of one project. Initially, the project was written in python2, but I need a code reworked for python3. The sqlite3 library is sqlite3 .
Gives an exception:
python 'sqlite3.Cursor' object has no attribute 'next'
On the following code:
conn = sqlite3.connect(os.path.join(profile, 'data.db')) c = conn.cursor() c.execute("SELECT item1,item2 FROM metadata WHERE id = 'TEXT';") row = c.next() If specifically, row = c.next() .
How to replace this line?
Maybe they use the old version of the library, when the new one does it a little differently?