cleanup rrd doc generation.

This commit is contained in:
Todd Willey
2010-10-27 17:31:46 -04:00
parent a3bc8fbd2b
commit 803b042f4b
2 changed files with 1 additions and 3 deletions

View File

@@ -79,7 +79,6 @@ def _match_query(query, attrs):
&, |, and ! are supported in the query. No syntax checking is performed,
so malformed querys will not work correctly.
"""
# cut off the parentheses
inner = query[1:-1]

View File

@@ -84,12 +84,11 @@ class AuthBase(object):
@classmethod
def safe_id(cls, obj):
"""Safe get object id
"""Safely get object id.
This method will return the id of the object if the object
is of this class, otherwise it will return the original object.
This allows methods to accept objects or ids as paramaters.
"""
if isinstance(obj, cls):
return obj.id