aboutsummaryrefslogtreecommitdiff
path: root/src/hooks.py
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-09-11 20:18:37 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-09-11 20:18:37 +0200
commit2ffd95c295b117053f6e5430ba3ccc72beb224aa (patch)
treefd61d882314bb09f0250ee55caeedd1101938bca /src/hooks.py
parent43be3d890eb37bef2f336bbc64e362a06bebe8ac (diff)
downloadminishell_test-2ffd95c295b117053f6e5430ba3ccc72beb224aa.tar.gz
minishell_test-2ffd95c295b117053f6e5430ba3ccc72beb224aa.tar.bz2
minishell_test-2ffd95c295b117053f6e5430ba3ccc72beb224aa.zip
Linting with flake8
Diffstat (limited to 'src/hooks.py')
-rw-r--r--src/hooks.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hooks.py b/src/hooks.py
index 7ee1334..7582c6e 100644
--- a/src/hooks.py
+++ b/src/hooks.py
@@ -6,7 +6,7 @@
# By: charles <me@cacharle.xyz> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/09/11 16:10:20 by charles #+# #+# #
-# Updated: 2020/09/11 18:26:58 by charles ### ########.fr #
+# Updated: 2020/09/11 19:53:43 by charles ### ########.fr #
# #
# ############################################################################ #
@@ -35,6 +35,6 @@ def discard(output):
def export_singleton(output):
return sort_lines(
- '\n'.join([l for l in output.split('\n')
- if regex.match("^declare -x .+=\".*\"$", l) is not None])
+ '\n'.join([line for line in output.split('\n')
+ if regex.match("^declare -x .+=\".*\"$", line) is not None])
)