ff062da91ca42f483a3a7c739835de3825c7898d,Orange/canvas/utils/qtcompat.py,,toPyObject,#Any#,25
Before Change
if sip_getapi("QVariant") > 1:
return obj
else:
try:
return obj.toPyObject()
except AttributeError:
return obj
After Change
for QVariant does not export it just return the object unchanged.
if HAS_QVARIANT:
return variant
elif isinstance(variant, QVariant):
return variant.toPyObject()
else:
raise TypeError("Expected a "QVariant"")
if HAS_QVARIANT:
toBitArray = methodcaller("toBitArray")
toBool = methodcaller("toBool")
toByteArray = methodcaller("toByteArray")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: biolab/orange3
Commit Name: ff062da91ca42f483a3a7c739835de3825c7898d
Time: 2013-02-13
Author: janez.demsar@gmail.com
File Name: Orange/canvas/utils/qtcompat.py
Class Name:
Method Name: toPyObject
Project Name: prody/ProDy
Commit Name: 7ca79b945accfbf1c5e435eac1e9e25c0d808272
Time: 2018-02-19
Author: jamesmkrieger@gmail.com
File Name: prody/proteins/blastpdb.py
Class Name:
Method Name: blastPDB
Project Name: biolab/orange3
Commit Name: 1e42cdbc38abf326aabf9776d653bd4fdc05c437
Time: 2013-02-13
Author: janez.demsar@gmail.com
File Name: Orange/canvas/utils/qtcompat.py
Class Name:
Method Name: toPyObject