Skip to content

python3 compatible next() for generator#4

Merged
bstabler merged 1 commit intoosPlanning:masterfrom
toliwaga:dev
Oct 19, 2018
Merged

python3 compatible next() for generator#4
bstabler merged 1 commit intoosPlanning:masterfrom
toliwaga:dev

Conversation

@toliwaga
Copy link
Copy Markdown
Contributor

replaced this
self._shape = self.iter_nodes(self.root.data,'CArray').next().shape
with this

            # jwd: generator has no next funtion in python 3 
            # next() function supported in both in python 2.6+ and python 3
            self._shape = next(self.iter_nodes(self.root.data,'CArray')).shape

Misspelled 'function' - sorry!

@bstabler
Copy link
Copy Markdown
Member

#3

@bstabler bstabler merged commit c6c5d63 into osPlanning:master Oct 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants