From 3ff10662f6926b208fb5eb90effb7f536b236a37 Mon Sep 17 00:00:00 2001
From: Pavel Savchenko <pasha.savchenko@gmail.com>
Date: Fri, 14 Sep 2012 23:40:30 +0300
Subject: [PATCH] Remove redundant `shell=True` parameter for Popen
Fixes [ticket #18533 - makemessages command fails on windows](https://code.djangoproject.com/ticket/18533).
More info in the issue in the ticket
---
django/core/management/commands/makemessages.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/django/core/management/commands/makemessages.py b/django/core/management/commands/makemessages.py
index 0b75059..ec8a8df 100644
a
|
b
|
def _popen(cmd):
|
42 | 42 | """ |
43 | 43 | Friendly wrapper around Popen for Windows |
44 | 44 | """ |
45 | | p = Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE, close_fds=os.name != 'nt', universal_newlines=True) |
| 45 | p = Popen(cmd, stdout=PIPE, stderr=PIPE, close_fds=os.name != 'nt', universal_newlines=True) |
46 | 46 | return p.communicate() |
47 | 47 | |
48 | 48 | def walk(root, topdown=True, onerror=None, followlinks=False, |