From 31e2aac7631f844349012f8d7122b1294c79fa53 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sun, 13 Sep 2020 09:50:52 +0200 Subject: Fixing import regex -> re for python3.5 compatibility --- src/hooks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hooks.py b/src/hooks.py index 001b956..e2fbcf8 100644 --- a/src/hooks.py +++ b/src/hooks.py @@ -6,11 +6,11 @@ # By: charles +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/09/11 16:10:20 by charles #+# #+# # -# Updated: 2020/09/12 10:37:16 by charles ### ########.fr # +# Updated: 2020/09/13 09:50:21 by charles ### ########.fr # # # # ############################################################################ # -import regex +import re import config @@ -41,5 +41,5 @@ def export_singleton(output): prefix = "export " if ("--posix" in config.REFERENCE_ARGS) else "declare -x " return sort_lines( '\n'.join([line for line in output.split('\n') - if regex.match("^{}.+=\".*\"$".format(prefix), line) is not None]) + if re.match("^{}.+=\".*\"$".format(prefix), line) is not None]) ) -- cgit