~noskcaj/ubuntu/vivid/webtest/merge

« back to all changes in this revision

Viewing changes to tests/compat.py

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski
  • Date: 2012-05-06 18:54:47 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20120506185447-d0711oozi1z5pm6f
Tags: 1.3.4-1
* New upstream release
* debian/rules: do not fail if docs/_static exists (closes: #671390)
* Standards-Version bumped to 3.9.3 (no changes needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
    def b(value):
17
17
        return str(value)
18
18
    def u(value):
 
19
        if isinstance(value, unicode):
 
20
            return value
19
21
        return unicode(value, 'utf-8')
20
22
 
21
23