Python urllib.splittag() Examples

The following are code examples for showing how to use urllib.splittag(). They are from open source Python projects. You can vote up the examples you like or vote down the ones you don't like.

Example 1
Project: sic   Author: Yanixos   File: py26compat.py    GNU General Public License v3.0 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 2
Project: AshsSDK   Author: thehappydinoa   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 3
Project: Repobot   Author: Desgard   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 4
Project: threatdetectionservice   Author: flyballlabs   File: py26compat.py    Apache License 2.0 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 5
Project: aws-cfn-plex   Author: lordmuffin   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 6
Project: jbox   Author: jpush   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
	"""
	In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
	later was patched to disregard the fragment when making URL requests.
	Do the same for Python 2.6 and earlier.
	"""
	url, fragment = splittag(url)
	return url 
Example 7
Project: beam   Author: axbaretto   File: py26compat.py    Apache License 2.0 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 8
Project: Mahjong-Solitaire   Author: MEASHY   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 9
Project: Mahjong-Solitaire   Author: MEASHY   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 10
Project: oa_qian   Author: sunqb   File: py26compat.py    Apache License 2.0 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 11
Project: python-netsurv   Author: sofia-netsurv   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 12
Project: python-netsurv   Author: sofia-netsurv   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 13
Project: sam-s-club-auctions   Author: sameer2800   File: py26compat.py    Apache License 2.0 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 14
Project: ironpython2   Author: IronLanguages   File: test_urllib.py    Apache License 2.0 5 votes vote down vote up
def test_splittag(self):
        splittag = urllib.splittag
        self.assertEqual(splittag('http://example.com?foo=bar#baz'),
                         ('http://example.com?foo=bar', 'baz'))
        self.assertEqual(splittag('http://example.com?foo=bar#'),
                         ('http://example.com?foo=bar', ''))
        self.assertEqual(splittag('#baz'), ('', 'baz'))
        self.assertEqual(splittag('http://example.com?foo=bar'),
                         ('http://example.com?foo=bar', None))
        self.assertEqual(splittag('http://example.com?foo=bar#baz#boo'),
                         ('http://example.com?foo=bar#baz', 'boo')) 
Example 15
Project: lambda-chef-node-cleanup   Author: awslabs   File: py26compat.py    Apache License 2.0 5 votes vote down vote up
def strip_fragment(url):
	"""
	In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
	later was patched to disregard the fragment when making URL requests.
	Do the same for Python 2.6 and earlier.
	"""
	url, fragment = splittag(url)
	return url 
Example 16
Project: brainspell-neo   Author: glass-bead-labs   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 17
Project: kobo-predict   Author: awemulya   File: py26compat.py    BSD 2-Clause "Simplified" License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 18
Project: Blockly-rduino-communication   Author: technologiescollege   File: py26compat.py    GNU General Public License v3.0 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 19
Project: poker   Author: surgebiswas   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 20
Project: Safejumper-for-Desktop   Author: proxysh   File: py26compat.py    GNU General Public License v2.0 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 21
Project: setup   Author: mindbender-studio   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 22
Project: noc-orchestrator   Author: DirceuSilvaLabs   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 23
Project: noc-orchestrator   Author: DirceuSilvaLabs   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 24
Project: Python   Author: andreiarnautu   File: py26compat.py    GNU General Public License v3.0 5 votes vote down vote up
def strip_fragment(url):
	"""
	In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
	later was patched to disregard the fragment when making URL requests.
	Do the same for Python 2.6 and earlier.
	"""
	url, fragment = splittag(url)
	return url 
Example 25
Project: Python   Author: andreiarnautu   File: py26compat.py    GNU General Public License v3.0 5 votes vote down vote up
def strip_fragment(url):
	"""
	In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
	later was patched to disregard the fragment when making URL requests.
	Do the same for Python 2.6 and earlier.
	"""
	url, fragment = splittag(url)
	return url 
Example 26
Project: geofire-python   Author: ininex   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 27
Project: aws-alfred-workflow   Author: maxrothman   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 28
Project: Financial-Portfolio-Flask   Author: Ryan-Gordon   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 29
Project: Slackbot   Author: AjithPanneerselvam   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 30
Project: myBlog   Author: adxc   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 31
Project: queue-management   Author: bcgov   File: py26compat.py    Apache License 2.0 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 32
Project: flickr_downloader   Author: Denisolt   File: py26compat.py    GNU General Public License v3.0 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 33
Project: OOAD-Project   Author: IT-Department-Projects   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 34
Project: break   Author: makeorbreak-io   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 35
Project: RealtimePythonChat   Author: quangtqag   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 36
Project: VoterValidation   Author: lakshbhasin   File: py26compat.py    Apache License 2.0 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 37
Project: VoterValidation   Author: lakshbhasin   File: py26compat.py    Apache License 2.0 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 38
Project: Pizza-or-Not-a-Pizza   Author: mraza007   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
	"""
	In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
	later was patched to disregard the fragment when making URL requests.
	Do the same for Python 2.6 and earlier.
	"""
	url, fragment = splittag(url)
	return url 
Example 39
Project: eatquik   Author: chanyoonzhu   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 40
Project: Blackjack-Tracker   Author: martinabeleda   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 41
Project: Ansible   Author: mrlesmithjr   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 42
Project: Ridr_app   Author: RydrDojo   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 43
Project: MakeAmericaTweetAgain   Author: JoeEdwardsCode   File: py26compat.py    GNU General Public License v3.0 5 votes vote down vote up
def strip_fragment(url):
	"""
	In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
	later was patched to disregard the fragment when making URL requests.
	Do the same for Python 2.6 and earlier.
	"""
	url, fragment = splittag(url)
	return url 
Example 44
Project: MakeAmericaTweetAgain   Author: JoeEdwardsCode   File: py26compat.py    GNU General Public License v3.0 5 votes vote down vote up
def strip_fragment(url):
	"""
	In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
	later was patched to disregard the fragment when making URL requests.
	Do the same for Python 2.6 and earlier.
	"""
	url, fragment = splittag(url)
	return url 
Example 45
Project: MakeAmericaTweetAgain   Author: JoeEdwardsCode   File: py26compat.py    GNU General Public License v3.0 5 votes vote down vote up
def strip_fragment(url):
	"""
	In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
	later was patched to disregard the fragment when making URL requests.
	Do the same for Python 2.6 and earlier.
	"""
	url, fragment = splittag(url)
	return url 
Example 46
Project: docker   Author: getavalon   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 47
Project: Tennis-Tweets   Author: jschriemer   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 48
Project: webapp   Author: superchilli   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 49
Project: checkmk-collector   Author: finalduty   File: py26compat.py    MIT License 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url 
Example 50
Project: offlow   Author: satwikkansal   File: py26compat.py    GNU General Public License v3.0 5 votes vote down vote up
def strip_fragment(url):
    """
    In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
    later was patched to disregard the fragment when making URL requests.
    Do the same for Python 2.6 and earlier.
    """
    url, fragment = splittag(url)
    return url