Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'that?': 0.05; 'so?': 0.09; 'subject:string': 0.09; 'subject:using': 0.09; 'cc:addr:python- list': 0.11; 'kern': 0.16; 'subject: \n ': 0.16; 'subject:URL': 0.16; 'subject:when': 0.16; 'to:addr:robert.kern': 0.16; 'to:name:robert kern': 0.16; 'urllib': 0.16; 'urllib2,': 0.16; 'using,': 0.16; 'wrote:': 0.18; 'library': 0.18; 'thu,': 0.19; 'import': 0.22; 'cc:addr:python.org': 0.22; 'server.': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'robert': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'requests': 0.31; '13,': 0.31; 'yes.': 0.31; 'problem': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'doing': 0.36; 'subject:?': 0.36; 'whatever': 0.38; 'pm,': 0.38; 'rather': 0.38; 'sure': 0.39; 'either': 0.39; 'tell': 0.60; 'to:addr:gmail.com': 0.65; 'url:co': 0.67; 'other.': 0.75; 'subject:Must': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=og6MzSAv8xV51tMOgJpFY4/yQil6UjsH4ekl5OgPV0I=; b=gL4JAsidsLgb+8KRRKNEvbGhR5aVd5YPeeCP7humE9xavjwLGVhnTlNL+Bn0+nNRam ro7n9ArWyhKJ3M8KB+wZnQO7T6+xkF5btLP8CY5Z0VeUoQpd9nBOGZjcaeQbLGNyJZMI n4RKpCH6KyFPR2E/dmCsfI3VJVY20Aa54iH8118483XSkAzDSCht6tnkUafIOO62FFxY Biv6YqJocP7r9Gdo3kFV1cMlFVb60wo3fSlj9BbxmFNt6lkFJWtdTK1P+yBVHyiXAwIX XnXmjGQmyNQFU+3sc0RChQ7E+f5r+yQQk8nMWX6NlBxQ+juVh9fO/dKDnDvf9f2JWuV/ PoEw== MIME-Version: 1.0 X-Received: by 10.194.121.132 with SMTP id lk4mr626328wjb.25.1371129906322; Thu, 13 Jun 2013 06:25:06 -0700 (PDT) In-Reply-To: References: Date: Thu, 13 Jun 2013 16:25:06 +0300 Subject: Re: Must we include urllib just to decode a URL-encoded string, when using Requests? From: Dotan Cohen To: Robert Kern Content-Type: text/plain; charset=UTF-8 Cc: "python-list." X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371129909 news.xs4all.nl 15920 [2001:888:2000:d::a6]:41783 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:47959 On Thu, Jun 13, 2013 at 4:20 PM, Robert Kern wrote: > Yes. Do you think there is a problem with doing so? > I'm pretty sure that Requests will use either urllib or urllib2, depending on what is available on the server. I would like to use whatever Requests is currently using, rather than import the other. Can I tell which library Requests is currently using and use that? -- Dotan Cohen http://gibberish.co.il http://what-is-what.com