From c099c27d633ca709a6a78ff51043d0e4930d882a Mon Sep 17 00:00:00 2001 From: Loge12 <35031408+Loge12@users.noreply.github.com> Date: Mon, 13 Dec 2021 20:57:29 +0100 Subject: [PATCH 1/2] Add a closing tag () (#62) * add a closing tag * delete doubled if statements --- flawfinder.py | 1 + 1 file changed, 1 insertion(+) diff --git a/flawfinder.py b/flawfinder.py index cea3897..e6530fe 100755 --- a/flawfinder.py +++ b/flawfinder.py @@ -644,6 +644,7 @@ class Hit(object): print_multi_line(main_text) if output_format: print(" ", end='') + print("", end='') print() if show_context: if output_format: From 6168884f4a0b42f01350d771961d44a5b3b7c62a Mon Sep 17 00:00:00 2001 From: Greg Myers Date: Sun, 30 Jan 2022 16:04:53 -0700 Subject: [PATCH 2/2] Fix typos in markdown docs (#64) README.md: meesages -> messages CONTRIBUTING.md invokable -> invocable --- CONTRIBUTING.md | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 797d0dc..4923069 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -62,8 +62,8 @@ As always, if you're modifying the software, you'll need to have your development environment set up. You need: * make -* python2 (invokable as "python2") -* python3 (invokable as "python3") +* python2 (invocable as "python2") +* python3 (invocable as "python3") * pylint (see below) An easy way to install pylint is to use pip. diff --git a/README.md b/README.md index eb84851..105b4a3 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ is configured to use UTF-8 (the most common situation by far). However, it's possible for flawfinder to halt if there is a character encoding problem and you're running Python3. -The usual symptom is error meesages like this: +The usual symptom is error messages like this: `Error: encoding error in FILENAME 'ENCODING' codec can't decode byte ... in position ...: invalid start byte` Unfortunately, Python3 fails to provide useful built-ins to deal with this.