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

FIX - PRONOM sig update for Python 3 #165

Merged
merged 4 commits into from
Oct 11, 2019
Merged

Conversation

carlwilson
Copy link
Member

  • open text files without binary option, e.g. open(file, 'wb') becomes open(file'w');
  • added wrapper for old style list sorting method: _cmp_to_key(mycmp);
  • rewrote HTTPConnection webservice calls in fido/pronmutils.py to work with Pyhton3 http_client library;
  • some gentle refactoring of monster def run(defaults=None) method in fido/update_signatures.py; and
  • tidied use of defaults in fido/update_signatures.py.

- open text files without binary option, e.g. `open(file, 'wb')` becomes `open(file'w')`;
- added wrapper for old style list sorting method: `_cmp_to_key(mycmp)`;
- rewrote `HTTPConnection` webservice calls in `fido/pronmutils.py` to work with Pyhton3 `http_client` library;
- some gentle refactoring of monster `def run(defaults=None)` method in `fido/update_signatures.py`; and
- tidied use of defaults in `fido/update_signatures.py`.
@carlwilson carlwilson added bug A product defect that needs fixing P1 High priority issues to be scheduled in the upcoming release labels Oct 11, 2019
@carlwilson carlwilson requested a review from ablwr October 11, 2019 08:24
@carlwilson carlwilson self-assigned this Oct 11, 2019
@carlwilson
Copy link
Member Author

Hi @ablwr I've tested this by running the update to PRONOM v95 via the fido-update-signatures command and it seems to work. My feeling is that everything now works under Python 3 or am I missing something?

Copy link
Contributor

@ablwr ablwr left a comment

Choose a reason for hiding this comment

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

Yep, seems to be working well for me! I'm sure we'll do some more thorough testing / QA in the coming weeks as well.

@carlwilson carlwilson merged commit f3ea4a7 into master Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A product defect that needs fixing P1 High priority issues to be scheduled in the upcoming release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants