zopefoundation / ZODB

Python object-oriented database
https://zodb-docs.readthedocs.io/
Other
683 stars 92 forks source link

repozo: fix recover on stdout #405

Closed perrinjerome closed 1 month ago

perrinjerome commented 1 month ago

This was working on python2, but on python3,

  repozo -v --recover --repository backups/ > restored.fs

failed with

  TypeError: write() argument must be str, not bytes
perrinjerome commented 1 month ago

I have no idea how we can test this.

It seems a minor problem, I just noticed the error by forgetting the -o argument.

EDIT: I mean, I feel it's OK to go without test