Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #9283 -- Deliberately silence one deprecation warning raised by…

… python 2.6.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2f188334d359c444d7f134fbde3751f75b212cf9 1 parent 806ea3a
@malcolmt malcolmt authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 django/core/management/commands/
6 django/core/management/commands/
@@ -1,8 +1,10 @@
import re
import os
import sys
+import warnings
from itertools import dropwhile
from optparse import make_option
from import CommandError, BaseCommand
@@ -10,6 +12,10 @@
except NameError:
from sets import Set as set # For Python 2.3
+# Intentionally silence DeprecationWarnings about os.popen3 in Python 2.6. It's
+# still sensible for us to use it, since subprocess didn't exist in 2.3.
+warnings.filterwarnings('ignore', category=DeprecationWarning, message=r'os\.popen3')
pythonize_re = re.compile(r'\n\s*//')
def handle_extensions(extensions=('html',)):
Please sign in to comment.
Something went wrong with that request. Please try again.