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

Support file objects in MarFile #9

Closed
wants to merge 2 commits into from
Closed

Support file objects in MarFile #9

wants to merge 2 commits into from

Conversation

rail
Copy link
Contributor

@rail rail commented Sep 30, 2015

I thought about adding a classmethod (from_fileboj()), but that would require changint the init() signature and break consumers.

@rail
Copy link
Contributor Author

rail commented Sep 30, 2015

Python 3 doesn't like my "basestring"...

self.fileobj = open(name, 'rb')
else:
# Assuming that a file object passed
self.name = name.name
Copy link
Contributor

Choose a reason for hiding this comment

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

not all file objects have names, StringIO objects in particular!

@rail rail closed this Oct 16, 2015
@rail rail deleted the marfile_fo branch October 16, 2015 16:24
catlee added a commit that referenced this pull request Jul 27, 2017
* [requires.io] dependency update on master branch (#7)

* [requires.io] dependency update

* [requires.io] dependency update

* [requires.io] dependency update on master branch (#8)

* [requires.io] dependency update

* [requires.io] dependency update

* [requires.io] dependency update

* [requires.io] dependency update

* [requires.io] dependency update

* [requires.io] dependency update

* [requires.io] dependency update

* [requires.io] dependency update

* [requires.io] dependency update on master branch (#9)

* [requires.io] dependency update

* Add support for XZ compressed mar files

* Fix verification to fail if a signature block exists with no signatures

* Add usage examples

* Use same LZMA compressor options as C version
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.

None yet

2 participants