~rashi007/mailman/docsfix

« back to all changes in this revision

Viewing changes to src/mailman/rest/validator.py

  • Committer: Barry Warsaw
  • Date: 2014-12-01 02:51:03 UTC
  • mto: (7264.4.22 py3)
  • mto: This revision was merged to the branch mainline in revision 7285.
  • Revision ID: barry@list.org-20141201025103-jvkuq92sptrrngiz
Checkpointing.

By using `six` I think I have most of the imports squared away.  There's
probably still uses of `unicode` built-ins that need fixing.

The idea is to first get the test suite running (which it doesn't yet), and
then to fix tests.

There's a bug in lazr.config which requires us to patch it for now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
    try:
63
63
        return UUID(int=int(subscriber))
64
64
    except ValueError:
65
 
        return unicode(subscriber)
 
65
        return subscriber.decode('utf-8')
66
66
 
67
67
 
68
68
def language_validator(code):