From f4eade0a98c3433003bd31f683eddb57c0408984 Mon Sep 17 00:00:00 2001 From: Tim Kennell Jr Date: Tue, 1 May 2018 16:21:32 -0500 Subject: [PATCH] Fix missing re.match() argument re.match requires 2 argument 1) the regex to perform the match 2) the string to match against --- nb_conda/envmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nb_conda/envmanager.py b/nb_conda/envmanager.py index 6c38c2e..c57d61b 100644 --- a/nb_conda/envmanager.py +++ b/nb_conda/envmanager.py @@ -98,7 +98,7 @@ def clean_conda_json(self, output): self.log.warn('[nb_conda] JSON parse fail:\n%s', err) # try to remove bad lines - lines = [line for line in lines if re.match(JSONISH_RE)] + lines = [line for line in lines if re.match(JSONISH_RE, line)] try: return json.loads('\n'.join(lines))