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
06c0e740
Kaydet (Commit)
06c0e740
authored
May 28, 2014
tarafından
Shai Berger
Kaydeden (comit)
Tim Graham
Haz 13, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added django.utils.six.buffer_types
and used it in the Oracle SchemaEditor. Refs #22715.
üst
50b9313e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
schema.py
django/db/backends/oracle/schema.py
+1
-2
six.py
django/utils/six.py
+2
-0
No files found.
django/db/backends/oracle/schema.py
Dosyayı görüntüle @
06c0e740
...
@@ -24,8 +24,7 @@ class DatabaseSchemaEditor(BaseDatabaseSchemaEditor):
...
@@ -24,8 +24,7 @@ class DatabaseSchemaEditor(BaseDatabaseSchemaEditor):
return
"'
%
s'"
%
value
return
"'
%
s'"
%
value
elif
isinstance
(
value
,
six
.
string_types
):
elif
isinstance
(
value
,
six
.
string_types
):
return
"'
%
s'"
%
six
.
text_type
(
value
)
.
replace
(
"
\'
"
,
"
\'\'
"
)
return
"'
%
s'"
%
six
.
text_type
(
value
)
.
replace
(
"
\'
"
,
"
\'\'
"
)
elif
(
isinstance
(
value
,
six
.
memoryview
)
or
elif
isinstance
(
value
,
six
.
buffer_types
):
six
.
PY3
and
isinstance
(
value
,
bytes
)):
return
"'
%
s'"
%
force_text
(
binascii
.
hexlify
(
value
))
return
"'
%
s'"
%
force_text
(
binascii
.
hexlify
(
value
))
elif
isinstance
(
value
,
bool
):
elif
isinstance
(
value
,
bool
):
return
"1"
if
value
else
"0"
return
"1"
if
value
else
"0"
...
...
django/utils/six.py
Dosyayı görüntüle @
06c0e740
...
@@ -667,6 +667,7 @@ if PY3:
...
@@ -667,6 +667,7 @@ if PY3:
_assertRaisesRegex
=
"assertRaisesRegex"
_assertRaisesRegex
=
"assertRaisesRegex"
_assertRegex
=
"assertRegex"
_assertRegex
=
"assertRegex"
memoryview
=
memoryview
memoryview
=
memoryview
buffer_types
=
(
bytes
,
bytearray
,
memoryview
)
else
:
else
:
_assertCountEqual
=
"assertItemsEqual"
_assertCountEqual
=
"assertItemsEqual"
_assertRaisesRegex
=
"assertRaisesRegexp"
_assertRaisesRegex
=
"assertRaisesRegexp"
...
@@ -678,6 +679,7 @@ else:
...
@@ -678,6 +679,7 @@ else:
memoryview
=
memoryview
memoryview
=
memoryview
else
:
else
:
memoryview
=
buffer
memoryview
=
buffer
buffer_types
=
(
bytearray
,
memoryview
)
def
assertCountEqual
(
self
,
*
args
,
**
kwargs
):
def
assertCountEqual
(
self
,
*
args
,
**
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