Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: urlopen, six, and py2 Date: Thu, 3 Mar 2016 03:17:16 +1100 Lines: 17 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de 8x2SCba2kqo+5hwcT9TTNAGjl6p4jvX3IjYHYLz6gVZQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.073 X-Spam-Evidence: '*H*': 0.85; '*S*': 0.00; 'cc:addr:python-list': 0.09; 'python': 0.10; 'thu,': 0.15; '2016': 0.16; 'caring': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'versions': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'requests': 0.25; 'chris': 0.26; 'message-id:@mail.gmail.com': 0.27; 'this.': 0.28; 'unlikely': 0.29; 'guess': 0.31; 'probably': 0.31; 'open': 0.33; 'handle': 0.34; 'received:google.com': 0.35; 'should': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'agree': 0.37; 'received:209.85.213': 0.37; 'difference': 0.38; 'received:209': 0.38; 'thank': 0.38; 'rather': 0.39; 'your': 0.60; 'mar': 0.65; 'six': 0.65; 'helping': 0.67; 'sounds': 0.76; '2:36': 0.84; 'chrisa': 0.84; 'subject:six': 0.84; 'to:none': 0.91; 'dealt': 0.91 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:cc; bh=QfUQogFGlfqPOlhxkJKaR1ny4/PqvYvBQP2gnI/AZDg=; b=qEk4fYojvJDfcxQ9S/4QZatlSESulCXgx5UuD9rjdh7GwA6o2ZYchaRjd7BttvRdkv RQF6lRs33k1mfh5sltJixR/pdeHlO2fb4ldmkDothUvbSsskPntqdOOvdPFa3vnMw3Kc xGNmGxVqDlSj0rqy6g6FQlK4hu0sXaTyDwNm6TuY70yVqy7Z8sDJGFO49fLrw0F4h2cx Puwv6ymYJkaDNPEjhEB65vNJ3HiUg2cin7Rp5JwMCwqnl27O7zK6KL3NZHGwYg549+Ud b9+DaVLf3rD/KLfsnq8Y0FwKdaKsUws/UZbM4HGLRW9Yy/3T1E5/1vGZzYrWuWGkufaq awzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc; bh=QfUQogFGlfqPOlhxkJKaR1ny4/PqvYvBQP2gnI/AZDg=; b=NpjL+O60AubsrCEsf0+e5RmNIuNp7r6zMhN8UhJaOmB6OkBRXj51chAt8HQDt697H+ n+RF+gWn7RvG39xynJHvhIUqQutdJ//553ep/U4jXv6kjVEq1YUfQ3Si0EsUNwurbmuk 1716Bcl92jfztaoDPv4O9LSdZVHoDQgfrZ+vy/RCEuQWTE8PkuV8SWskJGj71YV3Yx5E 0JxpZ4VdWxSX11+2JBWxqTFv8f27Awl0TU0qIHJeZhKOSz3c0JA2+bA6ktSFmU9DaKtd UdwJPBUDUgA+vNNokwGBy3X9kWbbar8thVLPTJoa/9cfa7i59fh7rwxdd4Jd7R9rBgfj ftFA== X-Gm-Message-State: AD7BkJLpdIy7KRRNZAkwp3kBUK3Yi6yRkkkScC4UdnaHuvuqamz6bn+g7yKLrDbValdms6P9QzyqWYIDhOweoA== X-Received: by 10.50.180.35 with SMTP id dl3mr828096igc.94.1456935436289; Wed, 02 Mar 2016 08:17:16 -0800 (PST) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:103880 On Thu, Mar 3, 2016 at 2:36 AM, Fabien wrote: > On 03/02/2016 03:35 PM, Matt Wheeler wrote: >> >> I agree that six should probably handle this, > > > Thank you Matt and Chris for your answers. Do you think I should open an > issue on six? It sounds unlikely that I am the first one having this > problem... > > (until this difference with urlopen I have found six to be extremely good at > helping not caring about python versions at all) What happens if you use 'requests' rather than urlopen? My guess is that requests will already have dealt with this. ChrisA