[Python-modules-team] Bug#750895: python3-tempita: doesn't work with python 3.3

Matthias Urlichs matthias at urlichs.de
Sun Jun 8 08:00:33 UTC 2014


Package: python3-tempita
Version: 0.5.2-1
Severity: important

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 "<stdin>", line 1, in <module>
  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}}
$


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (700, 'testing'), (650, 'stable'), (600, 'unstable'), (550, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python3-tempita depends on:
pn  python3:any  <none>

python3-tempita recommends no packages.

python3-tempita suggests no packages.

-- no debconf information



More information about the Python-modules-team mailing list