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
ff9e8ecc
Kaydet (Commit)
ff9e8ecc
authored
Eki 10, 2013
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed unnecessary semicolons.
üst
97001941
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
jslex.py
django/utils/jslex.py
+2
-2
test_forms.py
tests/forms_tests/tests/test_forms.py
+1
-1
tests.py
tests/test_utils/tests.py
+1
-1
No files found.
django/utils/jslex.py
Dosyayı görüntüle @
ff9e8ecc
...
...
@@ -203,7 +203,7 @@ def prepare_js_for_gettext(js):
if
name
==
'regex'
:
# C doesn't grok regexes, and they aren't needed for gettext,
# so just output a string instead.
tok
=
'"REGEX"'
;
tok
=
'"REGEX"'
elif
name
==
'string'
:
# C doesn't have single-quoted strings, so make all strings
# double-quoted.
...
...
@@ -214,6 +214,6 @@ def prepare_js_for_gettext(js):
# C can't deal with Unicode escapes in identifiers. We don't
# need them for gettext anyway, so replace them with something
# innocuous
tok
=
tok
.
replace
(
"
\\
"
,
"U"
)
;
tok
=
tok
.
replace
(
"
\\
"
,
"U"
)
c
.
append
(
tok
)
return
''
.
join
(
c
)
tests/forms_tests/tests/test_forms.py
Dosyayı görüntüle @
ff9e8ecc
...
...
@@ -1899,7 +1899,7 @@ class FormsTestCase(TestCase):
class
JSONForm
(
forms
.
Form
):
json
=
CustomJSONField
()
form
=
JSONForm
(
data
=
{
'json'
:
'{}'
})
;
form
=
JSONForm
(
data
=
{
'json'
:
'{}'
})
form
.
full_clean
()
self
.
assertEqual
(
form
.
cleaned_data
,
{
'json'
:
{}})
...
...
tests/test_utils/tests.py
Dosyayı görüntüle @
ff9e8ecc
...
...
@@ -307,7 +307,7 @@ class HTMLEqualTests(TestCase):
self
.
assertEqual
(
dom
[
0
],
'foo'
)
def
test_parse_html_in_script
(
self
):
parse_html
(
'<script>var a = "<p" + ">";</script>'
)
;
parse_html
(
'<script>var a = "<p" + ">";</script>'
)
parse_html
(
'''
<script>
var js_sha_link='<p>***</p>';
...
...
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