Skip to content

Commit b4dc037

Browse files
jaap3berkerpeksag
authored andcommitted
Cleanup code style and delete superfluous comments (#1422)
1 parent 1f69818 commit b4dc037

File tree

6 files changed

+5
-19
lines changed

6 files changed

+5
-19
lines changed

blogs/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class BlogEntry(models.Model):
1010
"""
1111
Model to store Blog entries from Blogger
12-
Specificially https://blog.python.org/
12+
Specifically https://blog.python.org/
1313
Feed URL is defined in settings.PYTHON_BLOG_FEED_URL
1414
"""
1515
title = models.CharField(max_length=200)

codesamples/views.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

community/models.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,7 @@
1010
from .managers import PostQuerySet
1111

1212

13-
DEFAULT_MARKUP_TYPE = 'html' # getattr(settings, 'DEFAULT_MARKUP_TYPE', 'restructuredtext')
14-
15-
'''
16-
Text
17-
Photo
18-
Video
19-
Link
20-
21-
Audio
22-
Quote
23-
Chat
24-
'''
13+
DEFAULT_MARKUP_TYPE = 'html'
2514

2615

2716
class Post(ContentManageable):

downloads/factories.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ def _get_id(obj, key):
6464
"""
6565
Get the ID of an object by extracting it from the resource_uri field.
6666
"""
67-
key = obj.pop(key, '')
68-
if key:
67+
resource_uri = obj.pop(key, '')
68+
if resource_uri:
6969
# i.e. /foo/1/ -> /foo/1 -> ('/foo', '/', '1') -> '1'
70-
return key.rstrip('/').rpartition('/')[-1]
70+
return resource_uri.rstrip('/').rpartition('/')[-1]
7171

7272

7373
def initial_data():

membership/models.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

work_groups/views.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)