~ubuntu-branches/ubuntu/oneiric/python-formencode/oneiric

« back to all changes in this revision

Viewing changes to formencode/util/threadinglocal.py

  • Committer: Bazaar Package Importer
  • Author(s): Andres Rodriguez
  • Date: 2011-06-08 09:45:26 UTC
  • mfrom: (1.1.5 upstream) (3.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20110608094526-lxaax4w9wsiqz1cw
Tags: 1.2.4-2ubuntu1
* Merge from debian unstable (LP: #789176).  Remaining changes:
  - debian/control: Suggest python-dns.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
else:
11
11
    try:
12
12
        local = threading.local
13
 
    except AttributeError:
14
 
        # Added in 2.4, but now we'll have to define it ourselves
 
13
    except AttributeError: # Python < 2.4
15
14
        import thread
16
15
        class local(object):
17
16