Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
sileced some flake8 notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
rochacbruno committed Sep 3, 2015
1 parent caf2372 commit 218704b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion quokka/core/admin/fields.py
Expand Up @@ -12,7 +12,7 @@
from quokka.modules.media.models import Image

if sys.version_info.major == 3:
unicode = lambda x: u'{}'.format(x) # noqa
unicode = lambda x: u'{}'.format(x) # noqa # flake8: noqa


class ThumbWidget(ImageUploadInput):
Expand Down
2 changes: 1 addition & 1 deletion quokka/core/tests/test_models.py
Expand Up @@ -7,7 +7,7 @@
from ..base_models.custom_values import CustomValue

if sys.version_info.major == 3:
unicode = lambda x: u'{}'.format(x)
unicode = lambda x: u'{}'.format(x) # flake8: noqa # noqa


class TestChannel(BaseTestCase):
Expand Down
17 changes: 8 additions & 9 deletions quokka/core/views.py
Expand Up @@ -6,22 +6,21 @@
import PyRSS2Gen as pyrss
import sys

# python3 support
if sys.version_info.major == 3:
from urllib.parse import urljoin
# from io import StringIO
else:
from urlparse import urljoin
# import StringIO

from datetime import datetime, timedelta
from flask import request, redirect, url_for, abort, current_app # , Response
from flask import request, redirect, url_for, abort, current_app
from flask.views import MethodView
from quokka.utils.atom import AtomFeed
from quokka.core.models import Channel, Content, Config
from quokka.core.templates import render_template
from quokka.utils import is_accessible, get_current_user

# python3 support
if sys.version_info.major == 3:
from urllib.parse import urljoin
# from io import StringIO
else:
from urlparse import urljoin
# import StringIO

logger = logging.getLogger()

Expand Down
4 changes: 2 additions & 2 deletions quokka/ext/template_filters.py
Expand Up @@ -12,8 +12,8 @@
from pymongo.mongo_client import MongoClient

if sys.version_info.major == 3:
unicode = lambda x: u'{}'.format(x) # noqa
basestring = str # noqa
unicode = lambda x: u'{}'.format(x) # noqa # flake8: noqa
basestring = str # noqa # flake8: noqa

basetypes = (
int, str, float, dict, list, tuple,
Expand Down
2 changes: 1 addition & 1 deletion quokka/modules/accounts/tests/test_model.py
Expand Up @@ -7,7 +7,7 @@
from ..models import User, Role

if sys.version_info.major == 3:
unicode = lambda x: u'{}'.format(x)
unicode = lambda x: u'{}'.format(x) # flake8: noqa


def eval_b(x):
Expand Down

0 comments on commit 218704b

Please sign in to comment.