Skip to content

Commit

Permalink
refactoring 2
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-usielski committed Oct 30, 2019
1 parent b09dc27 commit b156bee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions moler/cmd/commandtextualgeneric.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ def _build_command_string_escaped(self):
self._cmd_escaped = None
if self.__command_string is not None:
if self._command_string_right_index != 0 or self._command_string_left_index != 0:
self._cmd_escaped = re.compile(self._build_command_string_slice())
sub_command_string = self._build_command_string_slice()
else:
sub_command_string = self.__command_string
self._cmd_escaped = re.compile(re.escape(sub_command_string))
sub_command_string = re.escape(self.__command_string)
self._cmd_escaped = re.compile(sub_command_string)

def _build_command_string_slice(self):
"""
Expand Down

0 comments on commit b156bee

Please sign in to comment.