Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
8f14ed6c
Kaydet (Commit)
8f14ed6c
authored
Ock 31, 2018
tarafından
Jon Dufresne
Kaydeden (comit)
Tim Graham
Ock 31, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed unused os_err_exc_type kwarg from core.management.utils.popen_wrapper().
Unused since its introduction in
7fca4416
.
üst
0a37ea56
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
utils.py
django/core/management/utils.py
+2
-2
No files found.
django/core/management/utils.py
Dosyayı görüntüle @
8f14ed6c
...
@@ -8,7 +8,7 @@ from django.utils.encoding import DEFAULT_LOCALE_ENCODING, force_text
...
@@ -8,7 +8,7 @@ from django.utils.encoding import DEFAULT_LOCALE_ENCODING, force_text
from
.base
import
CommandError
from
.base
import
CommandError
def
popen_wrapper
(
args
,
os_err_exc_type
=
CommandError
,
stdout_encoding
=
'utf-8'
):
def
popen_wrapper
(
args
,
stdout_encoding
=
'utf-8'
):
"""
"""
Friendly wrapper around Popen.
Friendly wrapper around Popen.
...
@@ -17,7 +17,7 @@ def popen_wrapper(args, os_err_exc_type=CommandError, stdout_encoding='utf-8'):
...
@@ -17,7 +17,7 @@ def popen_wrapper(args, os_err_exc_type=CommandError, stdout_encoding='utf-8'):
try
:
try
:
p
=
Popen
(
args
,
shell
=
False
,
stdout
=
PIPE
,
stderr
=
PIPE
,
close_fds
=
os
.
name
!=
'nt'
)
p
=
Popen
(
args
,
shell
=
False
,
stdout
=
PIPE
,
stderr
=
PIPE
,
close_fds
=
os
.
name
!=
'nt'
)
except
OSError
as
err
:
except
OSError
as
err
:
raise
os_err_exc_type
(
'Error executing
%
s'
%
args
[
0
])
from
err
raise
CommandError
(
'Error executing
%
s'
%
args
[
0
])
from
err
output
,
errors
=
p
.
communicate
()
output
,
errors
=
p
.
communicate
()
return
(
return
(
force_text
(
output
,
stdout_encoding
,
strings_only
=
True
,
errors
=
'strict'
),
force_text
(
output
,
stdout_encoding
,
strings_only
=
True
,
errors
=
'strict'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment