baseclass: Privatize refcount debug helper

This commit is contained in:
Cole Robinson 2013-04-25 12:07:57 -04:00
parent 6f4167a66f
commit b15e51e73b

View File

@ -97,10 +97,10 @@ class vmmGObject(GObject.GObject):
if msg:
msg += " "
logging.debug("%s(%s %s)\n:%s",
msg, self.object_key, self.refcount(),
msg, self.object_key, self._refcount(),
"".join(traceback.format_stack()))
def refcount(self):
def _refcount(self):
# Function generates 2 temporary refs, so adjust total accordingly
return (sys.getrefcount(self) - 2)