do not regex escape None value
@@ -74,6 +74,9 @@ class CommandTextualGeneric(Command):
:return: Nothing.
"""
self.__command_string = command_string
+ if command_string is None:
+ self._cmd_escaped = None
+ else:
self._cmd_escaped = re.compile(re.escape(command_string))
@staticmethod
