From e15fc9fef64ba8cfd4f5f5c3c74135caef0ebfa7 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Thu, 9 Apr 2020 18:00:57 +0100 Subject: Additional Python 2.7 cleanups Signed-off-by: Stephen Finucane --- README.rst | 2 +- docs/deployment/installation.rst | 4 +--- patchwork/parser.py | 4 ---- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/README.rst b/README.rst index 2f89b00..7af45ce 100644 --- a/README.rst +++ b/README.rst @@ -39,7 +39,7 @@ Requirements Patchwork requires reasonably recent versions of: -- Python (2 or 3) +- Python 3 - Django diff --git a/docs/deployment/installation.rst b/docs/deployment/installation.rst index cef522c..6681002 100644 --- a/docs/deployment/installation.rst +++ b/docs/deployment/installation.rst @@ -44,9 +44,7 @@ Requirements For the purpose of this guide, we will assume an **Ubuntu 18.04** host: commands, package names and/or package versions will likely change if using a different distro or release. Similarly, usage of different package versions to -the ones suggested may require slightly different configuration. For example, -this guide describes configuration with **Python 3** and using Python 2 will -require different packages and some minor changes to configuration files. +the ones suggested may require slightly different configuration. Before beginning, you should update and restart this system: diff --git a/patchwork/parser.py b/patchwork/parser.py index 4c2d51d..a09fd75 100644 --- a/patchwork/parser.py +++ b/patchwork/parser.py @@ -765,11 +765,7 @@ def clean_content(content): """Remove cruft from the email message. Catch signature (-- ) and list footer (_____) cruft. - - Change to Unix line endings (the Python 3 email module does this for us, - but not Python 2). """ - content = content.replace('\r\n', '\n') sig_re = re.compile(r'^(-- |_+)\n.*', re.S | re.M) content = sig_re.sub('', content) -- cgit v1.2.3