diff options
| author | Tom Christie | 2012-01-21 18:33:34 +0000 |
|---|---|---|
| committer | Tom Christie | 2012-01-21 18:33:34 +0000 |
| commit | dea4a45ec72d0bd3cfeeb9382f177eb2fc3b0e14 (patch) | |
| tree | 99c9824ee53d6e57546eceb3551546cf72585c85 /djangorestframework/utils/description.py | |
| parent | a851294d052174b53531fdf90b22ddac8738e374 (diff) | |
| download | django-rest-framework-dea4a45ec72d0bd3cfeeb9382f177eb2fc3b0e14.tar.bz2 | |
pep8/pyflakes cleanup
Diffstat (limited to 'djangorestframework/utils/description.py')
| -rw-r--r-- | djangorestframework/utils/description.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/djangorestframework/utils/description.py b/djangorestframework/utils/description.py index ce61e558..096cf57f 100644 --- a/djangorestframework/utils/description.py +++ b/djangorestframework/utils/description.py @@ -50,7 +50,6 @@ def get_name(view): return re.sub('(((?<=[a-z])[A-Z])|([A-Z](?![A-Z]|$)))', ' \\1', name).strip() - def get_description(view): """ Provide a description for the view. @@ -63,7 +62,6 @@ def get_description(view): if getattr(view, 'cls_instance', None): view = view.cls_instance - # If this view has a resource that's been overridden, then use the resource's doctring if getattr(view, 'resource', None) not in (None, Resource, FormResource, ModelResource): doc = view.resource.__doc__ @@ -88,4 +86,3 @@ def get_description(view): # otherwise return it as-is return doc - |
