[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#680971: python3-apt: apt_inst.TarFile.extractdata could accepts bytes



Control: tag -1 confirmed

On Mon, Jul 09, 2012 at 05:57:04PM +0200, Jakub Wilk wrote:
> Package: python3-apt
> Version: 0.8.6
> Severity: wishlist
> 
> The apt_inst.TarFile.extractdata method requires that it's argument
> is a str. It would be nice if it also accepted bytes objects. This
> would be consistent with e.g. built-in open function, which accepts
> one or the other as filename.

Thank you for your bug report; and yes, you're right. We are using
PyArg_ParseTuple() to parse the string. We currently use the format
string "s" for parsing file names. If you happen to know the best
format string we could use that accepts bytes strings as well, please
let us know. It has to work with Python 2.7 as well.


-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.

Attachment: pgpJ_gNxw9Ha5.pgp
Description: PGP signature


Reply to: