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
dbbd10e7
Kaydet (Commit)
dbbd10e7
authored
Kas 11, 2013
tarafından
Aymeric Augustin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #21420 -- Autoreloader on BSD with Python 3.
Thanks Bouke Haarsma for the report.
üst
6010b536
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
autoreload.py
django/utils/autoreload.py
+3
-1
No files found.
django/utils/autoreload.py
Dosyayı görüntüle @
dbbd10e7
...
...
@@ -37,6 +37,7 @@ import traceback
from
django.conf
import
settings
from
django.core.signals
import
request_finished
from
django.utils
import
six
try
:
from
django.utils.six.moves
import
_thread
as
thread
except
ImportError
:
...
...
@@ -170,7 +171,8 @@ def kqueue_code_changed():
# New modules may get imported when a request is processed. We add a file
# descriptor to the kqueue to exit the kqueue.control after each request.
watcher
=
tempfile
.
TemporaryFile
(
bufsize
=
0
)
buf_kwargs
=
{
'buffering'
if
six
.
PY3
else
'bufsize'
:
0
}
watcher
=
tempfile
.
TemporaryFile
(
**
buf_kwargs
)
kqueue
.
control
([
make_kevent
(
watcher
)],
0
)
def
update_watch
(
sender
=
None
,
**
kwargs
):
...
...
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