diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2018-08-23 09:12:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-23 09:12:51 -0400 |
commit | a94099bc6554cac747475994ba5b6658f7c98bc8 (patch) | |
tree | 605fe9d54589759b5c26dbcf22fee289d1875215 | |
parent | 3f3ae097d5a0c32b384aa3c2627cd88b66e66ea7 (diff) | |
parent | 3147b4178792c967277449f03d418b23e2d03137 (diff) | |
download | meson-a94099bc6554cac747475994ba5b6658f7c98bc8.zip meson-a94099bc6554cac747475994ba5b6658f7c98bc8.tar.gz meson-a94099bc6554cac747475994ba5b6658f7c98bc8.tar.bz2 |
Merge pull request #4068 from ndufresne/master
help: Fix printing list of wrap mode
-rw-r--r-- | mesonbuild/wrap/__init__.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mesonbuild/wrap/__init__.py b/mesonbuild/wrap/__init__.py index 6e2bc83..b792dfa 100644 --- a/mesonbuild/wrap/__init__.py +++ b/mesonbuild/wrap/__init__.py @@ -33,4 +33,11 @@ from enum import Enum # Note that these options do not affect subprojects that # are git submodules since those are only usable in git # repositories, and you almost always want to download them. -WrapMode = Enum('WrapMode', 'default nofallback nodownload forcefallback') +class WrapMode(Enum): + default = 1 + nofallback = 2 + nodownload = 3 + forcefallback = 4 + + def __str__(self): + return self.name |