Skip to content

Commit

Permalink
pylint fixes, and bump to 0.1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
fluffy-critter committed May 19, 2018
1 parent 0c75e4d commit 7392e57
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
9 changes: 6 additions & 3 deletions publ/rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ def render_category(category='', template=None):
category -- The category to render
template -- The template to render it with
"""
# pylint:disable=too-many-return-statements

# See if this is an aliased path
redir = get_redirect()
if redir:
Expand Down Expand Up @@ -297,7 +299,8 @@ def render_entry(entry_id, slug_text='', category=''):
category=Category(category)), {'Content-Type': mime_type(tmpl)}


def render_transparent_chit(width=1, height=1):
bytes = base64.b64decode(
def render_transparent_chit():
""" Render a transparent chit for external, sized images """
out_bytes = base64.b64decode(
"R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")
return bytes, {'Content-Type': 'image/gif'}
return out_bytes, {'Content-Type': 'image/gif'}
1 change: 0 additions & 1 deletion publ/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from . import model, utils, queries
from .entry import Entry
from . import config

# Prioritization list for page/offset/whatever
OFFSET_PRIORITY = ['date', 'start', 'last', 'first', 'before', 'after']
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
setup(
name='Publ',

version='0.1.14',
version='0.1.15',

description='A content-management system for flexible web-based publishing',

Expand All @@ -38,7 +38,6 @@
'Natural Language :: English',

'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',

Expand Down

0 comments on commit 7392e57

Please sign in to comment.