Skip to content

Commit

Permalink
Add UTF-8 encoding to new files, and PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
brew committed Jun 9, 2016
1 parent a644788 commit 576508a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/config/middleware/flask_app.py
Expand Up @@ -70,8 +70,8 @@ def save_session(self, app, session, response):
'session.data_dir': '{data_dir}/sessions'.format(
data_dir=cache_dir),
'session.key': app_conf.get('beaker.session.key'),
'session.cookie_expires':
app_conf.get('beaker.session.cookie_expires'),
'session.cookie_expires': app_conf.get(
'beaker.session.cookie_expires'),
'session.secret': app_conf.get('beaker.session.secret')
}
app.wsgi_app = SessionMiddleware(app.wsgi_app, session_opts)
Expand Down
2 changes: 2 additions & 0 deletions ckan/tests/config/test_sessions.py
@@ -1,3 +1,5 @@
# encoding: utf-8

from nose.tools import ok_

from flask import Blueprint
Expand Down
2 changes: 2 additions & 0 deletions ckan/views/__init__.py
@@ -1,3 +1,5 @@
# encoding: utf-8

from flask import redirect

import ckan.model as model
Expand Down
2 changes: 2 additions & 0 deletions ckan/views/api.py
@@ -1,3 +1,5 @@
# encoding: utf-8

import cgi
import logging

Expand Down
2 changes: 2 additions & 0 deletions ckanext/example_flask_iblueprint/plugin.py
@@ -1,3 +1,5 @@
# encoding: utf-8

from flask import Blueprint
from flask import render_template, render_template_string

Expand Down
2 changes: 2 additions & 0 deletions ckanext/example_flask_iblueprint/tests/test_routes.py
@@ -1,3 +1,5 @@
# encoding: utf-8

from nose.tools import eq_, ok_

import ckan.plugins as plugins
Expand Down

0 comments on commit 576508a

Please sign in to comment.