Commits

Denis Bilenko committed 6d5ca7f

loop.__repr__: actually know if 'activecnt' is present at compile time

  • Participants
  • Parent commits f01b290

Comments (0)

Files changed (1)

     def __repr__(self):
         args = (self.__class__.__name__, id(self), self.default, self.backend)
         result = '<%s at 0x%x default=%r backend=%r' % args
-        activecnt = getattr(self, 'activecnt', None)
-        if activecnt is not None:
-            result += ' activecnt=%r' % activecnt
+#ifdef EV_STANDALONE
+        result += ' activecnt=%r' % self.activecnt
+#endif
         return result + '>'
 
     property default: