Bug#750895: python3-tempita: doesn't work with python 3.3

2017-02-26 Thread Sascha Steinbiss
Hi all,

> 2. This issue is already fixed in the upstream in this commit:
>  
> https://github.com/gjhiggins/tempita/commit/ce87d4c0f057880c5b0dc77e83e3eecad7f355a7
>  (The previous commit of this, 75064399e7e72fd67e2a0c21c675d6289e7d1ec9, 
> suffers from the same error.)

Here’s a small patch that backports their fix to this version. I also added a 
tiny autopkgtest to check the issue is fixed.

Cheers
Sascha


0001-address-encoding-issues-to-fix-750895.patch
Description: Binary data


signature.asc
Description: Message signed with OpenPGP


Bug#750895: python3-tempita: doesn't work with python 3.3

2017-02-10 Thread Soramichi AKIYAMA
Hi,

1. I observed exactly the same occurs also with stretch and Python 3.6.0.
 I believe any future versions will suffer from the same error because it stems 
from the different ways
 how encoding and bytearray are treated in Python 2.x and Python 3.x. 
2. This issue is already fixed in the upstream in this commit:
 
https://github.com/gjhiggins/tempita/commit/ce87d4c0f057880c5b0dc77e83e3eecad7f355a7
 (The previous commit of this, 75064399e7e72fd67e2a0c21c675d6289e7d1ec9, 
suffers from the same error.)

Regards,

Soramichi

-- 
Soramichi Akiyama 



Bug#750895: python3-tempita: doesn't work with python 3.3

2017-01-30 Thread Andrey Rahmatullin
Control: retitle -1 python3-tempita: doesn't work
Control: tags -1 + upstream

On Sun, Jun 08, 2014 at 10:00:33AM +0200, Matthias Urlichs wrote:
> This package does not work with Python3.3 (other versions not tested).
> 
> $ python3
> Python 3.3.5 (default, Mar 22 2014, 13:24:53) 
> [GCC 4.8.2] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from tempita import Template as t
> >>> w=t.from_filename("/tmp/test.tmpl")
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "/usr/lib/python3/dist-packages/tempita/__init__.py", line 147, in 
> from_filename
> default_inherit=default_inherit, get_template=get_template)
>   File "/usr/lib/python3/dist-packages/tempita/__init__.py", line 131, in 
> __init__
> self._parsed = parse(content, name=name, line_offset=line_offset, 
> delimiters=self.delimiters)
>   File "/usr/lib/python3/dist-packages/tempita/__init__.py", line 820, in 
> parse
> tokens = lex(s, name=name, line_offset=line_offset, delimiters=delimiters)
>   File "/usr/lib/python3/dist-packages/tempita/__init__.py", line 665, in lex
> for match in token_re.finditer(s):
> TypeError: can't use a string pattern on a bytes-like object
> >>> 
> $ cat /tmp/test.tmpl 
> {{py:x="Hello"}}
> {{x}}
> $
This doesn't work with 3.5 either.
May be related to https://github.com/gjhiggins/tempita/issues/2 (see also
the comment there about specifying a default encoding). May be fixed
upstream as noted in that bug.

-- 
WBR, wRAR


signature.asc
Description: PGP signature


Processed: Re: Bug#750895: python3-tempita: doesn't work with python 3.3

2017-01-30 Thread Debian Bug Tracking System
Processing control commands:

> retitle -1 python3-tempita: doesn't work
Bug #750895 [python3-tempita] python3-tempita: doesn't work
Ignoring request to change the title of bug#750895 to the same title
> tags -1 + upstream
Bug #750895 [python3-tempita] python3-tempita: doesn't work
Ignoring request to alter tags of bug #750895 to the same tags previously set

-- 
750895: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=750895
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Processed: Re: Bug#750895: python3-tempita: doesn't work with python 3.3

2017-01-30 Thread Debian Bug Tracking System
Processing control commands:

> retitle -1 python3-tempita: doesn't work
Bug #750895 [python3-tempita] python3-tempita: doesn't work with python 3.3
Changed Bug title to 'python3-tempita: doesn't work' from 'python3-tempita: 
doesn't work with python 3.3'.
> tags -1 + upstream
Bug #750895 [python3-tempita] python3-tempita: doesn't work
Added tag(s) upstream.

-- 
750895: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=750895
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems