Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored November 09, 2010

Showing 1 changed file with 0 additions and 14 deletions. Show diff stats Hide diff stats

  1. 14  django/contrib/gis/db/backends/util.py
14  django/contrib/gis/db/backends/util.py
@@ -3,20 +3,6 @@
3 3
 backends.
4 4
 """
5 5
 
6  
-def getstatusoutput(cmd):
7  
-    """
8  
-    Executes a shell command on the platform using subprocess.Popen and
9  
-    return a tuple of the status and stdout output.
10  
-    """
11  
-    from subprocess import Popen, PIPE
12  
-    # Set stdout and stderr to PIPE because we want to capture stdout and
13  
-    # prevent stderr from displaying.
14  
-    p = Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE)
15  
-    # We use p.communicate() instead of p.wait() to avoid deadlocks if the
16  
-    # output buffers exceed POSIX buffer size.
17  
-    stdout, stderr = p.communicate()
18  
-    return p.returncode, stdout.strip()
19  
-
20 6
 def gqn(val):
21 7
     """
22 8
     The geographic quote name function; used for quoting tables and

0 notes on commit cab434e

Please sign in to comment.
Something went wrong with that request. Please try again.