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
609b7f11
Unverified
Kaydet (Commit)
609b7f11
authored
Mar 27, 2019
tarafından
Mariusz Felisiak
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[2.2.x] Fixed "byte string" typo in various docs and comments.
Backport of
88136298
from master
üst
d7876fc9
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
11 deletions
+11
-11
base.py
django/core/files/base.py
+3
-3
schema.py
django/db/backends/postgresql/schema.py
+1
-1
safestring.py
django/utils/safestring.py
+1
-1
uploads.txt
docs/ref/files/uploads.txt
+1
-1
request-response.txt
docs/ref/request-response.txt
+1
-1
1.5.txt
docs/releases/1.5.txt
+2
-2
1.7.1.txt
docs/releases/1.7.1.txt
+1
-1
1.8.txt
docs/releases/1.8.txt
+1
-1
No files found.
django/core/files/base.py
Dosyayı görüntüle @
609b7f11
...
@@ -146,15 +146,15 @@ class ContentFile(File):
...
@@ -146,15 +146,15 @@ class ContentFile(File):
def
endswith_cr
(
line
):
def
endswith_cr
(
line
):
"""Return True if line (a text or byte
string) ends with '
\r
'."""
"""Return True if line (a text or bytestring) ends with '
\r
'."""
return
line
.
endswith
(
'
\r
'
if
isinstance
(
line
,
str
)
else
b
'
\r
'
)
return
line
.
endswith
(
'
\r
'
if
isinstance
(
line
,
str
)
else
b
'
\r
'
)
def
endswith_lf
(
line
):
def
endswith_lf
(
line
):
"""Return True if line (a text or byte
string) ends with '
\n
'."""
"""Return True if line (a text or bytestring) ends with '
\n
'."""
return
line
.
endswith
(
'
\n
'
if
isinstance
(
line
,
str
)
else
b
'
\n
'
)
return
line
.
endswith
(
'
\n
'
if
isinstance
(
line
,
str
)
else
b
'
\n
'
)
def
equals_lf
(
line
):
def
equals_lf
(
line
):
"""Return True if line (a text or byte
string) equals '
\n
'."""
"""Return True if line (a text or bytestring) equals '
\n
'."""
return
line
==
(
'
\n
'
if
isinstance
(
line
,
str
)
else
b
'
\n
'
)
return
line
==
(
'
\n
'
if
isinstance
(
line
,
str
)
else
b
'
\n
'
)
django/db/backends/postgresql/schema.py
Dosyayı görüntüle @
609b7f11
...
@@ -22,7 +22,7 @@ class DatabaseSchemaEditor(BaseDatabaseSchemaEditor):
...
@@ -22,7 +22,7 @@ class DatabaseSchemaEditor(BaseDatabaseSchemaEditor):
sql_delete_procedure
=
'DROP FUNCTION
%(procedure)
s(
%(param_types)
s)'
sql_delete_procedure
=
'DROP FUNCTION
%(procedure)
s(
%(param_types)
s)'
def
quote_value
(
self
,
value
):
def
quote_value
(
self
,
value
):
# getquoted() returns a quoted byte
string of the adapted value.
# getquoted() returns a quoted bytestring of the adapted value.
return
psycopg2
.
extensions
.
adapt
(
value
)
.
getquoted
()
.
decode
()
return
psycopg2
.
extensions
.
adapt
(
value
)
.
getquoted
()
.
decode
()
def
_field_indexes_sql
(
self
,
model
,
field
):
def
_field_indexes_sql
(
self
,
model
,
field
):
...
...
django/utils/safestring.py
Dosyayı görüntüle @
609b7f11
...
@@ -46,7 +46,7 @@ class SafeText(str, SafeData):
...
@@ -46,7 +46,7 @@ class SafeText(str, SafeData):
"""
"""
def
__add__
(
self
,
rhs
):
def
__add__
(
self
,
rhs
):
"""
"""
Concatenating a safe string with another safe byte
string or
Concatenating a safe string with another safe bytestring or
safe string is safe. Otherwise, the result is no longer safe.
safe string is safe. Otherwise, the result is no longer safe.
"""
"""
t
=
super
()
.
__add__
(
rhs
)
t
=
super
()
.
__add__
(
rhs
)
...
...
docs/ref/files/uploads.txt
Dosyayı görüntüle @
609b7f11
...
@@ -145,7 +145,7 @@ Custom file upload handlers **must** define the following methods:
...
@@ -145,7 +145,7 @@ Custom file upload handlers **must** define the following methods:
Receives a "chunk" of data from the file upload.
Receives a "chunk" of data from the file upload.
``raw_data`` is a byte
string containing the uploaded data.
``raw_data`` is a bytestring containing the uploaded data.
``start`` is the position in the file where this ``raw_data`` chunk
``start`` is the position in the file where this ``raw_data`` chunk
begins.
begins.
...
...
docs/ref/request-response.txt
Dosyayı görüntüle @
609b7f11
...
@@ -38,7 +38,7 @@ All attributes should be considered read-only, unless stated otherwise.
...
@@ -38,7 +38,7 @@ All attributes should be considered read-only, unless stated otherwise.
.. attribute:: HttpRequest.body
.. attribute:: HttpRequest.body
The raw HTTP request body as a byte
string. This is useful for processing
The raw HTTP request body as a bytestring. This is useful for processing
data in different ways than conventional HTML forms: binary images,
data in different ways than conventional HTML forms: binary images,
XML payload etc. For processing conventional form data, use
XML payload etc. For processing conventional form data, use
:attr:`HttpRequest.POST`.
:attr:`HttpRequest.POST`.
...
...
docs/releases/1.5.txt
Dosyayı görüntüle @
609b7f11
...
@@ -500,7 +500,7 @@ Python's copy of version 2.0.9. However, there are some incompatibilities
...
@@ -500,7 +500,7 @@ Python's copy of version 2.0.9. However, there are some incompatibilities
between other versions of ``simplejson``:
between other versions of ``simplejson``:
- While the ``simplejson`` API is documented as always returning unicode
- While the ``simplejson`` API is documented as always returning unicode
strings, the optional C implementation can return a byte
string. This was
strings, the optional C implementation can return a bytestring. This was
fixed in Python 2.7.
fixed in Python 2.7.
- ``simplejson.JSONEncoder`` gained a ``namedtuple_as_object`` keyword
- ``simplejson.JSONEncoder`` gained a ``namedtuple_as_object`` keyword
argument in version 2.2.
argument in version 2.2.
...
@@ -525,7 +525,7 @@ String types of hasher method parameters
...
@@ -525,7 +525,7 @@ String types of hasher method parameters
If you have written a :ref:`custom password hasher <auth_password_storage>`,
If you have written a :ref:`custom password hasher <auth_password_storage>`,
your ``encode()``, ``verify()`` or ``safe_summary()`` methods should accept
your ``encode()``, ``verify()`` or ``safe_summary()`` methods should accept
Unicode parameters (``password``, ``salt`` or ``encoded``). If any of the
Unicode parameters (``password``, ``salt`` or ``encoded``). If any of the
hashing methods need byte
strings, you can use the
hashing methods need bytestrings, you can use the
:func:`~django.utils.encoding.force_bytes` utility to encode the strings.
:func:`~django.utils.encoding.force_bytes` utility to encode the strings.
Validation of previous_page_number and next_page_number
Validation of previous_page_number and next_page_number
...
...
docs/releases/1.7.1.txt
Dosyayı görüntüle @
609b7f11
...
@@ -105,7 +105,7 @@ Bugfixes
...
@@ -105,7 +105,7 @@ Bugfixes
causing ``IntegrityError`` (:ticket:`23611`).
causing ``IntegrityError`` (:ticket:`23611`).
* Made :func:`~django.utils.http.urlsafe_base64_decode` return the proper
* Made :func:`~django.utils.http.urlsafe_base64_decode` return the proper
type (byte
string) on Python 3 (:ticket:`23333`).
type (bytestring) on Python 3 (:ticket:`23333`).
* :djadmin:`makemigrations` can now serialize timezone-aware values
* :djadmin:`makemigrations` can now serialize timezone-aware values
(:ticket:`23365`).
(:ticket:`23365`).
...
...
docs/releases/1.8.txt
Dosyayı görüntüle @
609b7f11
...
@@ -1111,7 +1111,7 @@ Miscellaneous
...
@@ -1111,7 +1111,7 @@ Miscellaneous
(or 200M, before 1.7.2) to 500M.
(or 200M, before 1.7.2) to 500M.
* ``reverse()`` and ``reverse_lazy()`` now return Unicode strings instead of
* ``reverse()`` and ``reverse_lazy()`` now return Unicode strings instead of
byte
strings.
bytestrings.
* The ``CacheClass`` shim has been removed from all cache backends.
* The ``CacheClass`` shim has been removed from all cache backends.
These aliases were provided for backwards compatibility with Django 1.3.
These aliases were provided for backwards compatibility with Django 1.3.
...
...
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