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
e17776e2
Kaydet (Commit)
e17776e2
authored
Mar 12, 2018
tarafından
Sergey Fedoseev
Kaydeden (comit)
Tim Graham
Mar 12, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed redundant UploadedFile.DEFAULT_CHUNK_SIZE.
The same value is inherited from File.
üst
a5406fe9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
base.py
django/core/files/base.py
+1
-1
uploadedfile.py
django/core/files/uploadedfile.py
+0
-1
No files found.
django/core/files/base.py
Dosyayı görüntüle @
e17776e2
...
...
@@ -48,7 +48,7 @@ class File(FileProxyMixin):
def
chunks
(
self
,
chunk_size
=
None
):
"""
Read the file and yield chunks of ``chunk_size`` bytes (defaults to
``
Uploaded
File.DEFAULT_CHUNK_SIZE``).
``File.DEFAULT_CHUNK_SIZE``).
"""
chunk_size
=
chunk_size
or
self
.
DEFAULT_CHUNK_SIZE
try
:
...
...
django/core/files/uploadedfile.py
Dosyayı görüntüle @
e17776e2
...
...
@@ -21,7 +21,6 @@ class UploadedFile(File):
An ``UploadedFile`` object behaves somewhat like a file object and
represents some file data that the user submitted with a form.
"""
DEFAULT_CHUNK_SIZE
=
64
*
2
**
10
def
__init__
(
self
,
file
=
None
,
name
=
None
,
content_type
=
None
,
size
=
None
,
charset
=
None
,
content_type_extra
=
None
):
super
()
.
__init__
(
file
,
name
)
...
...
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