Merge pull request #1554 from FHeilmann/FHeilmann-adjust_values_func
Adjust output of values() classmethod to not include function itself
This commit is contained in:
commit
7abd35196e
1 changed files with 2 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ class BedTypes(object):
|
|||
|
||||
@classmethod
|
||||
def values(cls):
|
||||
return [getattr(cls, name) for name in cls.__dict__ if not name.startswith("__")]
|
||||
return [getattr(cls, name) for name in cls.__dict__ if not (name.startswith("__") or name == "values")]
|
||||
|
||||
class BedOrigin(object):
|
||||
LOWERLEFT = "lowerleft"
|
||||
|
|
@ -42,7 +42,7 @@ class BedOrigin(object):
|
|||
|
||||
@classmethod
|
||||
def values(cls):
|
||||
return [getattr(cls, name) for name in cls.__dict__ if not name.startswith("__")]
|
||||
return [getattr(cls, name) for name in cls.__dict__ if not (name.startswith("__") or name == "values")]
|
||||
|
||||
class PrinterProfileManager(object):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue