summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bronn <jbronn@gmail.com>2010-11-09 17:42:38 +0000
committerJustin Bronn <jbronn@gmail.com>2010-11-09 17:42:38 +0000
commit7335388be2d2dbccf82c15f86121698487032fd6 (patch)
tree0f1972549d711dafeb8da196210426a230348119
parenta8114d64d55aaea4d0c4f995affbf883109fa9ef (diff)
[1.2.X] Fixed #14653 -- Removed vestigal `getstatusoutput` from GeoDjango utils.
Backport of r14508 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14509 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/gis/db/backends/util.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/django/contrib/gis/db/backends/util.py b/django/contrib/gis/db/backends/util.py
index ed35ce724a..b50c8e222e 100644
--- a/django/contrib/gis/db/backends/util.py
+++ b/django/contrib/gis/db/backends/util.py
@@ -3,20 +3,6 @@ A collection of utility routines and classes used by the spatial
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