From 5a6f70b4281817656db2f36c5919036d38fcce7f Mon Sep 17 00:00:00 2001 From: Anton Samarchyan Date: Wed, 25 Jan 2017 14:02:33 -0500 Subject: Refs #27656 -- Updated django.core docstring verbs according to PEP 257. --- django/core/serializers/python.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'django/core/serializers/python.py') diff --git a/django/core/serializers/python.py b/django/core/serializers/python.py index a299ed62c8..80c8bfe1d2 100644 --- a/django/core/serializers/python.py +++ b/django/core/serializers/python.py @@ -14,7 +14,7 @@ from django.utils.encoding import force_text, is_protected_type class Serializer(base.Serializer): """ - Serializes a QuerySet to basic Python objects. + Serialize a QuerySet to basic Python objects. """ internal_use_only = True @@ -180,9 +180,7 @@ def Deserializer(object_list, *, using=DEFAULT_DB_ALIAS, ignorenonexistent=False def _get_model(model_identifier): - """ - Helper to look up a model from an "app_label.model_name" string. - """ + """Look up a model from an "app_label.model_name" string.""" try: return apps.get_model(model_identifier) except (LookupError, TypeError): -- cgit v1.3