~noskcaj/ubuntu/vivid/webtest/merge

« back to all changes in this revision

Viewing changes to webtest/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:
88
88
            except:
89
89
                value = repr(value)
90
90
        sys.stderr.write(value)
 
91
 
 
92
try:
 
93
    next = next
 
94
except NameError:
 
95
    # python < 2.6
 
96
    def next(iterator):
 
97
        return iterator.next()
 
98
 
 
99
try:
 
100
    from collections import OrderedDict
 
101
except ImportError:
 
102
    OrderedDict = dict