-
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fc] Repository: Products.CMFDiffTool
Branch: refs/heads/master Date: 2020-09-10T18:20:30+02:00 Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org> Commit: plone/Products.CMFDiffTool@b673631 Fixed invalid escape sequences. Files changed: A news/3130.bugfix M Products/CMFDiffTool/libs/htmldiff.py Repository: Products.CMFDiffTool Branch: refs/heads/master Date: 2020-09-10T22:06:46+02:00 Author: Maurits van Rees (mauritsvanrees) <m.van.rees@zestsoftware.nl> Commit: plone/Products.CMFDiffTool@1e27e27 Merge pull request #38 from plone/maurits/fix-warnings Fixed invalid escape sequences. Files changed: A news/3130.bugfix M Products/CMFDiffTool/libs/htmldiff.py
- Loading branch information
1 parent
a80f9e9
commit d5073cd
Showing
1 changed file
with
11 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,34 @@ | ||
Repository: Products.PortalTransforms | ||
Repository: Products.CMFDiffTool | ||
|
||
|
||
Branch: refs/heads/master | ||
Date: 2020-09-10T17:38:25+02:00 | ||
Date: 2020-09-10T18:20:30+02:00 | ||
Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org> | ||
Commit: https://github.com/plone/Products.PortalTransforms/commit/6af2f2b5b16d3aefb657cce7d36f2f19c7baaba2 | ||
Commit: https://github.com/plone/Products.CMFDiffTool/commit/b6736312ac6d1e25e350b90e1fad7341c187705f | ||
|
||
Fixed invalid escape sequences. | ||
|
||
Files changed: | ||
A news/3130.bugfix | ||
M Products/PortalTransforms/libtransforms/commandtransform.py | ||
M Products/PortalTransforms/unsafe_transforms/xml.py | ||
M Products/CMFDiffTool/libs/htmldiff.py | ||
|
||
b'diff --git a/Products/PortalTransforms/libtransforms/commandtransform.py b/Products/PortalTransforms/libtransforms/commandtransform.py\nindex db9f343..f333481 100644\n--- a/Products/PortalTransforms/libtransforms/commandtransform.py\n+++ b/Products/PortalTransforms/libtransforms/commandtransform.py\n@@ -43,7 +43,7 @@ def initialize_tmpdir(self, data, **kwargs):\n def subObjects(self, tmpdir):\n imgs = []\n for f in os.listdir(tmpdir):\n- result = re.match("^.+\\.(?P<ext>.+)$", f)\n+ result = re.match(r"^.+\\.(?P<ext>.+)$", f)\n if result is not None:\n ext = result.group(\'ext\')\n if ext in (\'png\', \'jpg\', \'gif\'):\ndiff --git a/Products/PortalTransforms/unsafe_transforms/xml.py b/Products/PortalTransforms/unsafe_transforms/xml.py\nindex 9352cc7..0a6947b 100644\n--- a/Products/PortalTransforms/unsafe_transforms/xml.py\n+++ b/Products/PortalTransforms/unsafe_transforms/xml.py\n@@ -142,8 +142,9 @@ def invokeCommand(self, input_name, xsl):\n def register():\n return XsltTransform()\n \n-DT_RGX = re.compile(\'<!DOCTYPE \\w* PUBLIC \\"([^"]*)\\" \\"([^"]*)\\"\')\n-DT_RGX2 = re.compile(\'<!DOCTYPE \\w* SYSTEM \\"([^"]*)\\"\')\n+\n+DT_RGX = re.compile(r\'<!DOCTYPE \\w* PUBLIC "([^"]*)" "([^"]*)"\')\n+DT_RGX2 = re.compile(r\'<!DOCTYPE \\w* SYSTEM "([^"]*)"\')\n \n \n class DTException(Exception):\ndiff --git a/news/3130.bugfix b/news/3130.bugfix\nnew file mode 100644\nindex 0000000..c763a41\n--- /dev/null\n+++ b/news/3130.bugfix\n@@ -0,0 +1,2 @@\n+Fixed invalid escape sequences.\n+[maurits]\n' | ||
b"diff --git a/Products/CMFDiffTool/libs/htmldiff.py b/Products/CMFDiffTool/libs/htmldiff.py\nindex e7cbbab..01efb56 100644\n--- a/Products/CMFDiffTool/libs/htmldiff.py\n+++ b/Products/CMFDiffTool/libs/htmldiff.py\n@@ -27,9 +27,9 @@ def htmlEncode(s, esc=escape):\n return esc(s, 1)\n \n \n-commentRE = re.compile('<!--.*?-->', re.S)\n-tagRE = re.compile('<.*?>', re.S)\n-headRE = re.compile('<\\s*head\\s*>', re.S | re.I)\n+commentRE = re.compile(r'<!--.*?-->', re.S)\n+tagRE = re.compile(r'<.*?>', re.S)\n+headRE = re.compile(r'<\\s*head\\s*>', re.S | re.I)\n \n \n class HTMLMatcher(SequenceMatcher):\ndiff --git a/news/3130.bugfix b/news/3130.bugfix\nnew file mode 100644\nindex 0000000..c763a41\n--- /dev/null\n+++ b/news/3130.bugfix\n@@ -0,0 +1,2 @@\n+Fixed invalid escape sequences.\n+[maurits]\n" | ||
|
||
Repository: Products.PortalTransforms | ||
Repository: Products.CMFDiffTool | ||
|
||
|
||
Branch: refs/heads/master | ||
Date: 2020-09-10T22:06:37+02:00 | ||
Date: 2020-09-10T22:06:46+02:00 | ||
Author: Maurits van Rees (mauritsvanrees) <m.van.rees@zestsoftware.nl> | ||
Commit: https://github.com/plone/Products.PortalTransforms/commit/8e0483278f0a4453ec6cb92b4ba6569436442d82 | ||
Commit: https://github.com/plone/Products.CMFDiffTool/commit/1e27e27f9a6e0c413acfcc7ab77b7a6aa9004541 | ||
|
||
Merge pull request #42 from plone/maurits/fix-warnings-2 | ||
Merge pull request #38 from plone/maurits/fix-warnings | ||
|
||
Fixed invalid escape sequences. | ||
|
||
Files changed: | ||
A news/3130.bugfix | ||
M Products/PortalTransforms/libtransforms/commandtransform.py | ||
M Products/PortalTransforms/unsafe_transforms/xml.py | ||
M Products/CMFDiffTool/libs/htmldiff.py | ||
|
||
b'diff --git a/Products/PortalTransforms/libtransforms/commandtransform.py b/Products/PortalTransforms/libtransforms/commandtransform.py\nindex db9f343..f333481 100644\n--- a/Products/PortalTransforms/libtransforms/commandtransform.py\n+++ b/Products/PortalTransforms/libtransforms/commandtransform.py\n@@ -43,7 +43,7 @@ def initialize_tmpdir(self, data, **kwargs):\n def subObjects(self, tmpdir):\n imgs = []\n for f in os.listdir(tmpdir):\n- result = re.match("^.+\\.(?P<ext>.+)$", f)\n+ result = re.match(r"^.+\\.(?P<ext>.+)$", f)\n if result is not None:\n ext = result.group(\'ext\')\n if ext in (\'png\', \'jpg\', \'gif\'):\ndiff --git a/Products/PortalTransforms/unsafe_transforms/xml.py b/Products/PortalTransforms/unsafe_transforms/xml.py\nindex 9352cc7..0a6947b 100644\n--- a/Products/PortalTransforms/unsafe_transforms/xml.py\n+++ b/Products/PortalTransforms/unsafe_transforms/xml.py\n@@ -142,8 +142,9 @@ def invokeCommand(self, input_name, xsl):\n def register():\n return XsltTransform()\n \n-DT_RGX = re.compile(\'<!DOCTYPE \\w* PUBLIC \\"([^"]*)\\" \\"([^"]*)\\"\')\n-DT_RGX2 = re.compile(\'<!DOCTYPE \\w* SYSTEM \\"([^"]*)\\"\')\n+\n+DT_RGX = re.compile(r\'<!DOCTYPE \\w* PUBLIC "([^"]*)" "([^"]*)"\')\n+DT_RGX2 = re.compile(r\'<!DOCTYPE \\w* SYSTEM "([^"]*)"\')\n \n \n class DTException(Exception):\ndiff --git a/news/3130.bugfix b/news/3130.bugfix\nnew file mode 100644\nindex 0000000..c763a41\n--- /dev/null\n+++ b/news/3130.bugfix\n@@ -0,0 +1,2 @@\n+Fixed invalid escape sequences.\n+[maurits]\n' | ||
b"diff --git a/Products/CMFDiffTool/libs/htmldiff.py b/Products/CMFDiffTool/libs/htmldiff.py\nindex e7cbbab..01efb56 100644\n--- a/Products/CMFDiffTool/libs/htmldiff.py\n+++ b/Products/CMFDiffTool/libs/htmldiff.py\n@@ -27,9 +27,9 @@ def htmlEncode(s, esc=escape):\n return esc(s, 1)\n \n \n-commentRE = re.compile('<!--.*?-->', re.S)\n-tagRE = re.compile('<.*?>', re.S)\n-headRE = re.compile('<\\s*head\\s*>', re.S | re.I)\n+commentRE = re.compile(r'<!--.*?-->', re.S)\n+tagRE = re.compile(r'<.*?>', re.S)\n+headRE = re.compile(r'<\\s*head\\s*>', re.S | re.I)\n \n \n class HTMLMatcher(SequenceMatcher):\ndiff --git a/news/3130.bugfix b/news/3130.bugfix\nnew file mode 100644\nindex 0000000..c763a41\n--- /dev/null\n+++ b/news/3130.bugfix\n@@ -0,0 +1,2 @@\n+Fixed invalid escape sequences.\n+[maurits]\n" | ||
|