[Python-modules-commits] [yarl] 01/09: Import yarl_0.16.0.orig.tar.gz

Piotr Ożarowski piotr at moszumanska.debian.org
Wed Dec 20 10:59:58 UTC 2017


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

piotr pushed a commit to branch master
in repository yarl.

commit 4e0762268a6c79f22c656e8bcda79f8cdc44c2c0
Author: Piotr Ożarowski <piotr at debian.org>
Date:   Wed Dec 20 11:54:56 2017 +0100

    Import yarl_0.16.0.orig.tar.gz
---
 CHANGES.rst                | 6 ++++++
 PKG-INFO                   | 8 +++++++-
 tests/test_update_query.py | 4 +++-
 yarl.egg-info/PKG-INFO     | 8 +++++++-
 yarl/__init__.py           | 6 +++---
 5 files changed, 26 insertions(+), 6 deletions(-)

diff --git a/CHANGES.rst b/CHANGES.rst
index 61f2dc6..b706d4d 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -1,6 +1,12 @@
 CHANGES
 =======
 
+0.16.0 (2017-12-07)
+-------------------
+
+* Fix raising `TypeError` by `url.query_string()` after
+  `url.with_query({})` (empty mapping) #141
+
 0.15.0 (2017-11-23)
 -------------------
 
diff --git a/PKG-INFO b/PKG-INFO
index 824b079..2e82774 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: yarl
-Version: 0.15.0
+Version: 0.16.0
 Summary: Yet another URL library
 Home-page: https://github.com/aio-libs/yarl/
 Author: Andrew Svetlov
@@ -168,6 +168,12 @@ Description: yarl
         CHANGES
         =======
         
+        0.16.0 (2017-12-07)
+        -------------------
+        
+        * Fix raising `TypeError` by `url.query_string()` after
+          `url.with_query({})` (empty mapping) #141
+        
         0.15.0 (2017-11-23)
         -------------------
         
diff --git a/tests/test_update_query.py b/tests/test_update_query.py
index 7e4ee4d..76d61eb 100644
--- a/tests/test_update_query.py
+++ b/tests/test_update_query.py
@@ -69,7 +69,9 @@ def test_with_query_only_single_arg_is_supported():
 
 def test_with_query_empty_dict():
     url = URL('http://example.com/?a=b')
-    assert str(url.with_query({})) == 'http://example.com/'
+    new_url = url.with_query({})
+    assert new_url.query_string == ''
+    assert str(new_url) == 'http://example.com/'
 
 
 def test_with_query_empty_str():
diff --git a/yarl.egg-info/PKG-INFO b/yarl.egg-info/PKG-INFO
index 824b079..2e82774 100644
--- a/yarl.egg-info/PKG-INFO
+++ b/yarl.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: yarl
-Version: 0.15.0
+Version: 0.16.0
 Summary: Yet another URL library
 Home-page: https://github.com/aio-libs/yarl/
 Author: Andrew Svetlov
@@ -168,6 +168,12 @@ Description: yarl
         CHANGES
         =======
         
+        0.16.0 (2017-12-07)
+        -------------------
+        
+        * Fix raising `TypeError` by `url.query_string()` after
+          `url.with_query({})` (empty mapping) #141
+        
         0.15.0 (2017-11-23)
         -------------------
         
diff --git a/yarl/__init__.py b/yarl/__init__.py
index 6dff9b4..6e187bb 100644
--- a/yarl/__init__.py
+++ b/yarl/__init__.py
@@ -11,9 +11,9 @@ from multidict import MultiDict, MultiDictProxy
 
 from .quoting import quote, unquote
 
-__version__ = '0.15.0'
+__version__ = '0.16.0'
 
-__all__ = ['URL']
+__all__ = ('URL',)
 
 
 # is_leaf()
@@ -760,7 +760,7 @@ class URL:
                                     "should be str or int, got {!r}".format(v))
                 lst.append(
                     quoter(k, safe='/?:@') + '=' + quoter(v, safe='/?:@'))
-                query = '&'.join(lst)
+            query = '&'.join(lst)
         elif isinstance(query, str):
             query = _quote(query, safe='/?:@',
                            protected=PROTECT_CHARS,

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



More information about the Python-modules-commits mailing list