mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Fixed some missing/extraneous new line warnings.
This commit is contained in:
parent
8f2f48ecc9
commit
c3881944e8
@ -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.
|
||||||
|
@ -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."""
|
||||||
|
@ -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__))
|
||||||
|
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user