aboutsummaryrefslogtreecommitdiffstats
path: root/parse/enum.py
diff options
context:
space:
mode:
Diffstat (limited to 'parse/enum.py')
-rw-r--r--parse/enum.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/parse/enum.py b/parse/enum.py
new file mode 100644
index 0000000..bf35d01
--- /dev/null
+++ b/parse/enum.py
@@ -0,0 +1,7 @@
1class Enum(frozenset):
2 def __getattr__(self, name):
3 if name in self:
4 return name
5 raise AttributeError
6
7