Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Remove absolute imports to support vendoring#142

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
msiemens merged 2 commits intomsiemens:masterfrommottosso:master
Jun 23, 2017

Conversation

@mottosso
Copy link
Contributor

Hi folks,

Thanks for this amazing project! I'm looking to bundle tinydb with another software library but couldn't due to the global references totinydb in import statements.

This PR makes all imports relative, so that you can now do this.

frommy_library.vendorimporttinydb

Let me know if there are any issues.

eugene-eeo reacted with thumbs up emoji
>>> fromtinydb import TinyDB, where
>>> fromtinydb.storages import MemoryStorage
>>> from. import TinyDB, where
>>> from .storages import MemoryStorage
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I think we should keep the absolute import here as that's what users will usually continue to use. Or am I mistaken?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Oh, yes you are right. Sorry about that.

@msiemens
Copy link
Owner

One small nit with the docstring, otherwise looks good to me!

@msiemensmsiemens merged commitb2039b7 intomsiemens:masterJun 23, 2017
@msiemens
Copy link
Owner

Merged, thanks! I'll try to find to release a new version of TinyDB next week :)

@msiemens
Copy link
Owner

BTW, I've just released v3.3.1 which includes this pull request :)

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

Reviewers

@msiemensmsiemensmsiemens left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@mottosso@msiemens

[8]ページ先頭

©2009-2025 Movatter.jp