diff --git a/ciscoconfparse/ccp_abc.py b/ciscoconfparse/ccp_abc.py index d273434..8b2d612 100644 --- a/ciscoconfparse/ccp_abc.py +++ b/ciscoconfparse/ccp_abc.py @@ -81,6 +81,9 @@ def __repr__(self): def __str__(self): return self.__repr__() + def __len__(self): + return len(self.text) + # On BaseCfgLine() def __hash__(self): ## I inlined the hash() argument below for speed... whenever I change