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

Add required import for example to work #756

Merged
merged 1 commit into from
Jan 19, 2023
Merged

Add required import for example to work #756

merged 1 commit into from
Jan 19, 2023

Conversation

jensenbox
Copy link

If a person were to simply copy this code block it would use the built in open and would not work. Adding in the correct import makes this block a bit easier for a simple copy paste.

If a person were to simply copy this code block it would use the built in `open` and would not work. Adding in the correct import makes this block a bit easier for a simple copy paste.
@mpenkov mpenkov merged commit 7ab4dda into piskvorky:develop Jan 19, 2023
@mpenkov
Copy link
Collaborator

mpenkov commented Jan 19, 2023

Thank you @jensenbox !

beck3905 pushed a commit to beck3905/smart_open that referenced this pull request Sep 6, 2023
If a person were to simply copy this code block it would use the built in `open` and would not work. Adding in the correct import makes this block a bit easier for a simple copy paste.
mpenkov pushed a commit that referenced this pull request Sep 7, 2023
* fix: ignore seek requests to the current position

* fix: adjust test to match new seek behavior

* run seek if it is the first time

* Add required import for example to work (#756)

If a person were to simply copy this code block it would use the built in `open` and would not work. Adding in the correct import makes this block a bit easier for a simple copy paste.

* run tests on py3.11 (#774)

* add type command to ftp (#781)

* Add python 3.11 to setup.py (#775)

* Fixes KeyError when retrieving empty but existing object from S3 (#771)

* fix: Fixes KeyError when retrieving empty file from S3

* Add test

* bugfix: when read size > chunk size, return read size and not chunk size (#767)

* undo formatting

* fix whitespace

* undo formatting

---------

Co-authored-by: Rusty Conover <[email protected]>
Co-authored-by: Christian Jensen <[email protected]>
Co-authored-by: tooptoop4 <[email protected]>
Co-authored-by: Raphaël Cohen <[email protected]>
Co-authored-by: Ron Reiter <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants