[Python-modules-commits] [python-dugong] 01/05: Import python-dugong_3.7.1+dfsg.orig.tar.gz

Nikolaus Rath nikratio-guest at moszumanska.debian.org
Thu Jun 15 17:54:31 UTC 2017


This is an automated email from the git hooks/post-receive script.

nikratio-guest pushed a commit to branch master
in repository python-dugong.

commit 424cba053c8393a1a9fa9a3d63cecad97c096df6
Author: Nikolaus Rath <Nikolaus at rath.org>
Date:   Thu Jun 15 10:38:41 2017 -0700

    Import python-dugong_3.7.1+dfsg.orig.tar.gz
---
 Changes.rst              | 10 ++++++++--
 PKG-INFO                 |  2 +-
 dugong.egg-info/PKG-INFO |  2 +-
 dugong/__init__.py       |  2 +-
 setup.cfg                |  4 ++--
 test/test_dugong.py      | 12 ++++++++----
 6 files changed, 21 insertions(+), 11 deletions(-)

diff --git a/Changes.rst b/Changes.rst
index 7005d90..0ede35d 100644
--- a/Changes.rst
+++ b/Changes.rst
@@ -1,7 +1,13 @@
 .. currentmodule:: dugong
 
-Relase 3.7 (2016-06-20)
-=======================
+Release 3.7.1 (2017-06-05)
+==========================
+
+* Now compatible with Python 3.6.
+
+
+Release 3.7 (2016-06-20)
+========================
 
 * Dugong now supports server responses that specify just ``Connection:
   close`` instead of providing the response length or using chunked
diff --git a/PKG-INFO b/PKG-INFO
index dedc06a..6eb5fe6 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: dugong
-Version: 3.7
+Version: 3.7.1
 Summary: A HTTP 1.1 client module supporting asynchronous IO, pipelining and `Expect: 100-continue`. Designed for RESTful protocols.
 Home-page: https://bitbucket.org/nikratio/python-dugong
 Author: Nikolaus Rath
diff --git a/dugong.egg-info/PKG-INFO b/dugong.egg-info/PKG-INFO
index dedc06a..6eb5fe6 100644
--- a/dugong.egg-info/PKG-INFO
+++ b/dugong.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: dugong
-Version: 3.7
+Version: 3.7.1
 Summary: A HTTP 1.1 client module supporting asynchronous IO, pipelining and `Expect: 100-continue`. Designed for RESTful protocols.
 Home-page: https://bitbucket.org/nikratio/python-dugong
 Author: Nikolaus Rath
diff --git a/dugong/__init__.py b/dugong/__init__.py
index 92e0a52..05455ec 100644
--- a/dugong/__init__.py
+++ b/dugong/__init__.py
@@ -39,7 +39,7 @@ try:
 except ImportError:
     Enum = object
 
-__version__ = '3.7'
+__version__ = '3.7.1'
 
 log = logging.getLogger(__name__)
 
diff --git a/setup.cfg b/setup.cfg
index eea4f30..d53fe90 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -6,7 +6,7 @@ source-dir = rst
 build-dir = doc
 
 [egg_info]
-tag_build = 
-tag_date = 0
 tag_svn_revision = 0
+tag_date = 0
+tag_build = 
 
diff --git a/test/test_dugong.py b/test/test_dugong.py
index 5ef370e..ef1409e 100755
--- a/test/test_dugong.py
+++ b/test/test_dugong.py
@@ -24,7 +24,7 @@ if __name__ == '__main__':
 from dugong import (HTTPConnection, BodyFollowing, CaseInsensitiveDict, _join,
                     ConnectionClosed)
 import dugong
-from http.server import BaseHTTPRequestHandler, _quote_html
+from http.server import BaseHTTPRequestHandler
 from io import TextIOWrapper
 from base64 import b64encode
 import http.client
@@ -34,6 +34,7 @@ import time
 import ssl
 import re
 import os
+import html
 import hashlib
 import threading
 import socketserver
@@ -1163,9 +1164,12 @@ class MockRequestHandler(BaseHTTPRequestHandler):
             message = shortmsg
         explain = longmsg
         self.log_error("code %d, message %s", code, message)
-        # using _quote_html to prevent Cross Site Scripting attacks (see bug #1100201)
-        content = (self.error_message_format % {'code': code, 'message': _quote_html(message),
-                                               'explain': explain}).encode('utf-8', 'replace')
+        # HTML encode to prevent Cross Site Scripting attacks (see bug #1100201)
+        content = (self.error_message_format % {
+            'code': code,
+            'message': html.escape(message, quote=False),
+            'explain': explain
+        }).encode('utf-8', 'replace')
         self.send_response(code, message)
         self.send_header("Content-Type", self.error_content_type)
         self.send_header("Content-Length", str(len(content)))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-dugong.git



More information about the Python-modules-commits mailing list