Django

Code

Changeset 7993

Show
Ignore:
Timestamp:
07/19/08 14:32:18 (4 months ago)
Author:
mtredinnick
Message:

Starting to do the reverse() threading stuff.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/utils/translation/trans_real.py

    r7857 r7993  
    99 
    1010from django.utils.safestring import mark_safe, SafeData 
    11  
    12 try: 
    13     import threading 
    14     hasThreads = True 
    15 except ImportError: 
    16     hasThreads = False 
    17  
    18 if hasThreads: 
    19     currentThread = threading.currentThread 
    20 else: 
    21     def currentThread(): 
    22         return 'no threading' 
     11from django.utils.thread_support import currentThread 
    2312 
    2413# Translations are cached in a dictionary for every language+app tuple.