|
@@ -166,7 +166,7 @@ class YeditException(Exception): # pragma: no cover
|
|
class Yedit(object): # pragma: no cover
|
|
class Yedit(object): # pragma: no cover
|
|
''' Class to modify yaml files '''
|
|
''' Class to modify yaml files '''
|
|
re_valid_key = r"(((\[-?\d+\])|([0-9a-zA-Z%s/_-]+)).?)+$"
|
|
re_valid_key = r"(((\[-?\d+\])|([0-9a-zA-Z%s/_-]+)).?)+$"
|
|
- re_key = r"(?:\[(-?\d+)\])|([0-9a-zA-Z%s/_-]+)"
|
|
|
|
|
|
+ re_key = r"(?:\[(-?\d+)\])|([0-9a-zA-Z{}/_-]+)"
|
|
com_sep = set(['.', '#', '|', ':'])
|
|
com_sep = set(['.', '#', '|', ':'])
|
|
|
|
|
|
# pylint: disable=too-many-arguments
|
|
# pylint: disable=too-many-arguments
|