Commit b6121904 authored by Sergey Motornyuk's avatar Sergey Motornyuk
Browse files

Python 3 support

parent 0723abb7
...@@ -22,7 +22,7 @@ def custom_convert_from_extras(key, data, errors, context): ...@@ -22,7 +22,7 @@ def custom_convert_from_extras(key, data, errors, context):
data[key] = "" data[key] = ""
to_remove = [] to_remove = []
for data_key in data.keys(): for data_key in list(data.keys()):
if (data_key[0] == 'extras'): if (data_key[0] == 'extras'):
data_value = data[data_key] data_value = data[data_key]
if 'key' in data_value and data_value['key'] == key[-1]: if 'key' in data_value and data_value['key'] == key[-1]:
......
'''Tests that this extension doesn't break unrelated things''' '''Tests that this extension doesn't break unrelated things'''
from builtins import object
import nose.tools import nose.tools
from ckan.tests import helpers from ckan.tests import helpers
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment