vp-build/srcpkgs/laditools/patches/00-python-enum34.patch

27 lines
920 B
Diff

commit 97b8cf3d7abb33aa664cf09aae826362730eef87
Author: Ross Gammon <rossgammon@mail.dk>
Date: Tue Mar 8 00:02:09 2016 +0100
Port from python-enum to python-enum34
Fixes Debian Bug #800805
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=800805
diff --git laditools/ladish.py laditools/ladish.py
index 3613149..21fc53b 100644
--- laditools/ladish.py
+++ laditools/ladish.py
@@ -28,10 +28,8 @@ control_obj_path = "/org/ladish/Control"
studio_obj_path = "/org/ladish/Studio"
service_name = name_base
-LadishStatusType = Enum("STUDIO_STOPPED",
- "NOT_AVAILABLE",
- "NO_STUDIO_LOADED",
- "STUDIO_RUNNING")
+LadishStatusType = Enum("LadishStatusType",
+ "STUDIO_STOPPED NOT_AVAILABLE NO_STUDIO_LOADED STUDIO_RUNNING")
class LadishProxyError(Exception): pass
class LadishStudioException(Exception): pass