aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-09-13 09:50:52 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-09-13 09:50:52 +0200
commit31e2aac7631f844349012f8d7122b1294c79fa53 (patch)
tree6b290d1739214b7a4168ff095168ed52df165a9c
parent6026876cdfd8ffb1bde3c98e97bb7ba05ff4e4ae (diff)
downloadminishell_test-31e2aac7631f844349012f8d7122b1294c79fa53.tar.gz
minishell_test-31e2aac7631f844349012f8d7122b1294c79fa53.tar.bz2
minishell_test-31e2aac7631f844349012f8d7122b1294c79fa53.zip
Fixing import regex -> re for python3.5 compatibility
-rw-r--r--src/hooks.py6
1 files 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 <me@cacharle.xyz> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# 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])
)