Django

Code

Changeset 9148

Show
Ignore:
Timestamp:
10/05/08 06:39:58 (3 months ago)
Author:
mtredinnick
Message:

Fixed #9283 -- Deliberately silence one deprecation warning raised by python 2.6.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/management/commands/makemessages.py

    r9110 r9148  
    22import os 
    33import sys 
     4import warnings 
    45from itertools import dropwhile 
    56from optparse import make_option 
     7 
    68from django.core.management.base import CommandError, BaseCommand 
    79 
     
    1012except NameError: 
    1113    from sets import Set as set     # For Python 2.3 
     14 
     15# Intentionally silence DeprecationWarnings about os.popen3 in Python 2.6. It's 
     16# still sensible for us to use it, since subprocess didn't exist in 2.3. 
     17warnings.filterwarnings('ignore', category=DeprecationWarning, message=r'os\.popen3') 
    1218 
    1319pythonize_re = re.compile(r'\n\s*//')