Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #14653 -- Removed vestigal `getstatusoutput` from GeoDjango utils.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14508 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit cab434e011619f6ee9001dc62f769bb3dc88c1e9 1 parent 616b302
Justin Bronn jbronn authored
Showing with 0 additions and 14 deletions.
  1. +0 −14 django/contrib/gis/db/backends/util.py
14 django/contrib/gis/db/backends/util.py
View
@@ -3,20 +3,6 @@
backends.
"""
-def getstatusoutput(cmd):
- """
- Executes a shell command on the platform using subprocess.Popen and
- return a tuple of the status and stdout output.
- """
- from subprocess import Popen, PIPE
- # Set stdout and stderr to PIPE because we want to capture stdout and
- # prevent stderr from displaying.
- p = Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE)
- # We use p.communicate() instead of p.wait() to avoid deadlocks if the
- # output buffers exceed POSIX buffer size.
- stdout, stderr = p.communicate()
- return p.returncode, stdout.strip()
-
def gqn(val):
"""
The geographic quote name function; used for quoting tables and
Please sign in to comment.
Something went wrong with that request. Please try again.