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:
Gina Häußge authored and GitHub committed 2016-10-26 11:02:12 +02:00
commit 7abd35196e
1 file changed
+2 -2
+2 -2
View File
@@ -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):
"""