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
c3881944
Kaydet (Commit)
c3881944
authored
Ock 26, 2014
tarafından
Simon Charette
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed some missing/extraneous new line warnings.
üst
8f2f48ec
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
3 deletions
+1
-3
config.py
django/apps/config.py
+0
-1
utils.py
django/test/utils.py
+0
-1
apps.py
tests/apps/namespace_package_base/nsapp/apps.py
+1
-0
tests.py
tests/apps/tests.py
+0
-1
No files found.
django/apps/config.py
Dosyayı görüntüle @
c3881944
...
@@ -128,7 +128,6 @@ class AppConfig(object):
...
@@ -128,7 +128,6 @@ class AppConfig(object):
# Entry is a path to an app config class.
# Entry is a path to an app config class.
return
cls
(
app_name
,
app_module
)
return
cls
(
app_name
,
app_module
)
def
get_model
(
self
,
model_name
):
def
get_model
(
self
,
model_name
):
"""
"""
Returns the model with the given case-insensitive model_name.
Returns the model with the given case-insensitive model_name.
...
...
django/test/utils.py
Dosyayı görüntüle @
c3881944
...
@@ -528,7 +528,6 @@ requires_tz_support = skipUnless(TZ_SUPPORT,
...
@@ -528,7 +528,6 @@ requires_tz_support = skipUnless(TZ_SUPPORT,
"time zone, but your operating system isn't able to do that."
)
"time zone, but your operating system isn't able to do that."
)
@contextmanager
@contextmanager
def
extend_sys_path
(
*
paths
):
def
extend_sys_path
(
*
paths
):
"""Context manager to temporarily add paths to sys.path."""
"""Context manager to temporarily add paths to sys.path."""
...
...
tests/apps/namespace_package_base/nsapp/apps.py
Dosyayı görüntüle @
c3881944
...
@@ -3,6 +3,7 @@ import os
...
@@ -3,6 +3,7 @@ import os
from
django.apps
import
AppConfig
from
django.apps
import
AppConfig
from
django.utils._os
import
upath
from
django.utils._os
import
upath
class
NSAppConfig
(
AppConfig
):
class
NSAppConfig
(
AppConfig
):
name
=
'nsapp'
name
=
'nsapp'
path
=
upath
(
os
.
path
.
dirname
(
__file__
))
path
=
upath
(
os
.
path
.
dirname
(
__file__
))
tests/apps/tests.py
Dosyayı görüntüle @
c3881944
...
@@ -201,7 +201,6 @@ class AppsTests(TestCase):
...
@@ -201,7 +201,6 @@ class AppsTests(TestCase):
self
.
assertEqual
(
new_apps
.
get_model
(
"apps"
,
"SouthPonies"
),
temp_model
)
self
.
assertEqual
(
new_apps
.
get_model
(
"apps"
,
"SouthPonies"
),
temp_model
)
@skipUnless
(
@skipUnless
(
sys
.
version_info
>
(
3
,
3
,
0
),
sys
.
version_info
>
(
3
,
3
,
0
),
"Namespace packages sans __init__.py were added in Python 3.3"
)
"Namespace packages sans __init__.py were added in Python 3.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