Sign in
nest-open-source
/
manifest_repos
/
ffmpeg
/
d18a1ff1ee3408962332c59ed996699166c5570d
/
.
/
chromium
/
scripts
/
enum.py
blob: a30d2b87106fb305c8d7e777c9600fb864c35a37 [
file
] [
log
] [
blame
]
import
collections
# Python has enums now, but Goobuntu machines seem to run very old python. From:
# http://stackoverflow.com/questions/36932/how-can-i-represent-an-enum-in-python
def
enum
(*
keys
):
return
collections
.
namedtuple
(
'Enum'
,
keys
)(*
keys
)