Package: python-pastewebkit
Version: 1.0-4
User: debian-pyt...@lists.debian.org
Usertags: python2.7

$ for py in $(pyversions -s); do $py test.py; done
python2.5: OK
python2.6: OK
python2.7:
Traceback (most recent call last):
  File "test.py", line 7, in <module>
    writer.write(42, file.name)
  File 
"/usr/lib/pymodules/python2.7/paste/webkit/FakeWebware/MiscUtils/PickleCache.py",
 line 203, in write
    dump(dict, file, 1)   # 1 = binary format
cPickle.PicklingError: Can't pickle <type 'sys.version_info'>: it's not the 
same object as sys.version_info


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-pastewebkit depends on:
ii  python                        2.6.6-6    interactive high-level object-orie
ii  python-paste                  1.7.5.1-1  tools for using a Web Server Gatew
ii  python-pastedeploy            1.3.3-3    load, configure, and compose WSGI
ii  python-pastescript            1.7.3-6    serving web applications, creating
ii  python-pkg-resources          0.6.14-5   Package Discovery and Resource Acc
ii  python-support                1.0.12     automated rebuilding support for P

--
Jakub Wilk
import sys
from paste.webkit.FakeWebware.MiscUtils.PickleCache import *

print 'python%d.%d:' % sys.version_info[:2],
file = open('tmp', 'w')
writer = PickleCacheWriter()
writer.write(42, file.name)
print 'OK'

Reply via email to