Commits

Andriy Kornatskyy  committed 8b0e648

Unconditionally take query and fragment in UrlParts.join.

  • Participants
  • Parent commits f5d91b7

Comments (0)

Files changed (1)

File src/wheezy/core/url.py

             none-empty values from ``other``. Returns new ``UrlParts``
             instance.
 
+            Query and Fragment parts are taken unconditionally from ``other``.
+
             >>> from wheezy.core.comp import urlsplit
             >>> parts = urlsplit('http://www.python.org/dev/peps/pep-3333')
             >>> parts = urlparts(parts)
                 other[0] or self[0],
                 other[1] or self[1],
                 other[2] or self[2],
-                other[3] or self[3],
-                other[4] or self[4])
+                other[3],
+                other[4])
         return UrlParts(parts)