Skip to content

Conversation

@nkinkade
Copy link
Contributor

This small PR is complementary to maxmind/MaxMind-DB-Reader-python#33, allowing one to pass an open file descriptor to the Reader() class upon instantiation (instead of just a string path to the database). The comments in the PR just referenced include a longer reasoning/use-case for this functionality.

Since none of the current unit tests instantiate a Reader() object with an explicit mode, I've just added a small stub test class named TestFDReader (not a subclass of BaseTesteReader), which currently does nothing. It's a placeholder and reminder that it could be used in the future.

@coveralls
Copy link

coveralls commented May 11, 2018

Coverage Status

Coverage remained the same at 98.94% when pulling ecea767 on nkinkade:file-descriptor into 5fbc9a4 on maxmind:master.

@oschwald
Copy link
Member

Thanks!

@oschwald oschwald merged commit 3b48af0 into maxmind:master May 16, 2018
oschwald added a commit that referenced this pull request May 16, 2018
@oschwald
Copy link
Member

maxminddb 1.4.0 and geoip2 2.9.0 have been released with these changes. Thanks! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants