get web.py ready for Python 3.0

Bug #277266 reported by Aaron Swartz
2
Affects Status Importance Assigned to Milestone
web.py
Confirmed
Medium
Anand Chitipothu

Bug Description

Running web.py under python2.6 -3 (the 3.0 warning mode) returns the following easy-to-fix errors:

web/utils.py:141: DeprecationWarning: the sets module is deprecated
  from sets import Set

(use the builtin set or frozenset instead)

web/webapi.py:20: DeprecationWarning: the cPickle module has been removed in Python 3.0
  import sys, cgi, Cookie, pprint, urlparse, urllib

(use pickle instead)

web/session.py:10: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5

web/wsgiserver/__init__.py:772: DeprecationWarning: callable() not supported in 3.x; use hasattr(o, '__call__')
  if callable(wsgi_app):

web/webapi.py:201: DeprecationWarning: comparing unequal types not supported in 3.x
  if expires < 0:

The problem here seems to be that expires defaults to "".

Aaron Swartz (aaronsw)
Changed in webpy:
assignee: nobody → anandology
importance: Undecided → Medium
milestone: none → 0.35
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.