Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace usage of map unsupported on Python 3 #5062

Merged
merged 1 commit into from Nov 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions ckanext/example_idatastorebackend/example_sqlite.py
Expand Up @@ -113,8 +113,8 @@ def resource_id_from_alias(self, alias):
return False, alias

def get_all_ids(self):
return map(lambda t: t.name, self._get_engine().execute(
return [t.name for t in self._get_engine().execute(
u'''
select name from sqlite_master
where type = "table"'''
).fetchall())
).fetchall()]
4 changes: 3 additions & 1 deletion setup.py
Expand Up @@ -25,7 +25,9 @@
#

def parse_version(s):
return map(int, s.split('.'))
return [int(part) for part in s.split('.')]



HERE = os.path.dirname(__file__)
with open(os.path.join(HERE, 'requirement-setuptools.txt')) as f:
Expand Down