selectors.py
changeset 5244 5467674ad101
parent 5223 6abd6e3599f4
child 5302 dfd147de06b2
--- a/selectors.py	Wed Apr 14 10:25:51 2010 +0200
+++ b/selectors.py	Wed Apr 14 10:29:38 2010 +0200
@@ -1044,7 +1044,7 @@
 
     May only be used on the web side, not on the data repository side.
     """
-    if req.cnx is None:
+    if not req.cnx:
         return 1
     return 0