[issue2504] Add gettext.pgettext() and variants support

2014-11-03 Thread Wichert Akkerman

Wichert Akkerman added the comment:

Bump.

Python 3 is still not on my radar, but I'll happily do a backport for Py2 and 
drop that on PyPI once this gets resolved.

--
versions: +Python 3.3, Python 3.4, Python 3.5, Python 3.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2504
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15266] Perform the same checks as PyPI for Description field

2014-07-13 Thread Wichert Akkerman

Wichert Akkerman added the comment:

Éric is not quite correct: I currently have a package where python setup.py 
check does not show any error, but PyPI still refuses to format my long 
description. Likewise python setup.py --long-description | rst2html-2.7.py  
/dev/null also does not reveal any errors or warnings, so I am at a completely 
loss as to why PyPI refuses to format my documentation.

--
nosy: +wichert

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15266
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2014-03-27 Thread Wichert Akkerman

Wichert Akkerman added the comment:

I can reproduce this on Both OSX 10.9 and Ubuntu 12.04:

 import mimetypes
 mimetypes.guess_extension('image/jpeg')
'.jpe'
 mimetypes.init()
 mimetypes.guess_extension('image/jpeg')
'.jpeg'

The same thing happens for Python 3.4:

Python 3.4.0rc3 (default, Mar 13 2014, 10:48:59) 
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.38)] on darwin
Type help, copyright, credits or license for more information.
 import mimetypes
 mimetypes.guess_all_extensions('image/jpeg')
['.jpg', '.jpeg', '.jpe']
 mimetypes.init()
 mimetypes.guess_all_extensions('image/jpeg')
['.jpeg', '.jpe', '.jpg']

This also looks related to Issue1043134

--
nosy: +wichert

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4963
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1043134] Add preferred extensions for MIME types

2014-03-27 Thread Wichert Akkerman

Wichert Akkerman added the comment:

Here is a related question on SO: 
http://stackoverflow.com/questions/352837/how-to-add-file-extensions-based-on-file-type-on-linux-unix

--
nosy: +wichert

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1043134
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18164] Embedding Python doc incorrectly refers to LINKFORSHARED

2013-06-07 Thread Wichert Akkerman

Changes by Wichert Akkerman wich...@wiggy.net:


--
nosy: +wichert

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18164
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16354] Remember python version choice on docs.python.org

2012-10-29 Thread Wichert Akkerman

New submission from Wichert Akkerman:

docs.python.org was recently change to redirect http://docs.python.org/ to 
http://docs.python.org/3/ , with an option to switch to documentation for a 
different version using both (why two ways?) a dropdown and links in the left 
column. Would it be possible to remember the selection and honour that in the 
docs.python.org redirect? That would remove the minor annoyance of always 
ending up at the Python 3 documentation and having to switch back to 2.7.

--
assignee: docs@python
components: Documentation
messages: 174106
nosy: docs@python, wichert
priority: normal
severity: normal
status: open
title: Remember python version choice on docs.python.org

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16354
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2988] Invalid cookies crash web applications

2012-08-27 Thread Wichert Akkerman

Wichert Akkerman added the comment:

I do not agree that this is a fix. Effectively this means that if a user has a 
single cookie that SimpleCookie does not like a webapp can not use any cookie 
at all. Imho at a minimum there should be a way to tell SimpleCookie to ignore 
invalid cookies.

--
nosy: +wichert

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2988
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2988] Invalid cookies crash web applications

2012-08-27 Thread Wichert Akkerman

Changes by Wichert Akkerman wich...@wiggy.net:


--
versions: +Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2988
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10436] tarfile.extractfile in r| stream mode fails with filenames or members from getmembers()

2012-08-23 Thread Wichert Akkerman

Wichert Akkerman added the comment:

You could also look for the first matching file and extract that. That way you 
can at least implement something similar to what standard tar can do:

[fog;/tmp]-10 tar tf x.tar 
docs/
docs/index.rst
docs/glossary.rst
docs/Makefile
docs/conf.py
docs/changes.rst
[fog;/tmp]-12 cat x.tar| tar xf - docs/index.rst
[fog;/tmp]-13 ls docs 
index.rst

--
nosy: +wichert

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10436
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14826] urllib2.urlopen fails to load URL

2012-05-16 Thread Wichert Akkerman

New submission from Wichert Akkerman wich...@wiggy.net:

There appears to be an odd networking issue with how urllib2 sends HTTP 
requests. Downloading an image from maw.liquifire.com gives an error:

$ python -c 'import urllib2 ; 
urllib2.urlopen(http://maw.liquifire.com/maw?set=image[2302.000.13314 
a]call=url[file:325x445])'
Traceback (most recent call last):
  File string, line 1, in module
  File /usr/lib/python2.7/urllib2.py, line 126, in urlopen
return _opener.open(url, data, timeout)
  File /usr/lib/python2.7/urllib2.py, line 400, in open
response = self._open(req, data)
  File /usr/lib/python2.7/urllib2.py, line 418, in _open
'_open', req)
  File /usr/lib/python2.7/urllib2.py, line 378, in _call_chain
result = func(*args)
  File /usr/lib/python2.7/urllib2.py, line 1207, in http_open
return self.do_open(httplib.HTTPConnection, req)
  File /usr/lib/python2.7/urllib2.py, line 1180, in do_open
r = h.getresponse(buffering=True)
  File /usr/lib/python2.7/httplib.py, line 1030, in getresponse
response.begin()
  File /usr/lib/python2.7/httplib.py, line 407, in begin
version, status, reason = self._read_status()
  File /usr/lib/python2.7/httplib.py, line 365, in _read_status
line = self.fp.readline()
  File /usr/lib/python2.7/socket.py, line 447, in readline
data = self._sock.recv(self._rbufsize)
socket.error: [Errno 104] Connection reset by peer

Downloading the same image using wget works fine:

$ wget 'http://maw.liquifire.com/maw?set=image[2302.000.13314 
a]call=url[file:325x445]' 
--2012-05-16 10:53:27--  
http://maw.liquifire.com/maw?set=image[2302.000.13314%20a]call=url[file:325x445]
Resolving maw.liquifire.com (maw.liquifire.com)... 184.169.78.6
Connecting to maw.liquifire.com (maw.liquifire.com)|184.169.78.6|:80... 
connected.
HTTP request sent, awaiting response... 200 OK
Length: 11393 (11K) [image/jpeg]
Saving to: `maw?set=image[2302.000.13314 a]call=url[file:325x445]'

100%[==] 11,393  --.-K/s   in 0.003s  

2012-05-16 10:53:27 (3.49 MB/s) - `maw?set=image[2302.000.13314 
a]call=url[file:325x445]' saved [11393/11393]

--
components: Library (Lib)
messages: 160811
nosy: wichert
priority: normal
severity: normal
status: open
title: urllib2.urlopen fails to load URL
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14826
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2504] Add gettext.pgettext() and variants support

2010-11-26 Thread Wichert Akkerman

Wichert Akkerman wich...@wiggy.net added the comment:

I can help test changes for python 2.x. The python 3.x ecosystem is at least a 
year away from becoming interesting for me I'm afraid.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2504
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2504] Add gettext.pgettext() and variants support

2010-05-29 Thread Wichert Akkerman

Wichert Akkerman wich...@wiggy.net added the comment:

Martin, is there anything we can do to help get this merged? I can really use 
this as well.

My background here is that currently the complete zope i18n support abuses 
message ids as a workaround, and the result works but is very painful for 
translators since the original string is not immediately visible for them.

--
nosy: +wichert

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2504
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com