]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
Additional Python 2.7 cleanups
authorStephen Finucane <stephen@that.guru>
Thu, 9 Apr 2020 17:00:57 +0000 (18:00 +0100)
committerStephen Finucane <stephen@that.guru>
Thu, 9 Apr 2020 17:01:14 +0000 (18:01 +0100)
Signed-off-by: Stephen Finucane <stephen@that.guru>
README.rst
docs/deployment/installation.rst
patchwork/parser.py

index 2f89b000ecc972db10382b7322a9885fac867ca9..7af45ce7245469c8bb2d5f2de408705f87e2f896 100644 (file)
@@ -39,7 +39,7 @@ Requirements
 
 Patchwork requires reasonably recent versions of:
 
-- Python (2 or 3)
+- Python 3
 
 - Django
 
index cef522c6b0f81c20ec774359f9913c850335fb87..6681002f849f48f848ac7de48a119a1fad5764be 100644 (file)
@@ -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:
 
index 4c2d51d67a039765b0e08a1ae3437b14351217ad..a09fd754c4be6cffc24cebbed7cc345c607e53fc 100644 (file)
@@ -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)