We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fd5fd1 commit 21aecd5Copy full SHA for 21aecd5
python/__init__.py
@@ -24,16 +24,15 @@
24
__revision__ = '$Format:%H$'
25
26
try:
27
- # Add a __nonzero__ method onto QPyNullVariant so we can check for null values easier.
28
- # >>> value = QPyNullVariant("int")
29
- # >>> if value:
30
- # >>> print "Not a null value"
31
- from types import MethodType
32
- from PyQt4.QtCore import QPyNullVariant
+ # Add a __nonzero__ method onto QPyNullVariant so we can check for null values easier.
+ # >>> value = QPyNullVariant("int")
+ # >>> if value:
+ # >>> print "Not a null value"
+ from types import MethodType
+ from PyQt4.QtCore import QPyNullVariant
33
def __nonzero__(self):
34
return False
35
36
QPyNullVariant.__nonzero__ = MethodType(__nonzero__, None, QPyNullVariant)
37
except ImportError:
38
pass
39
-
0 commit comments