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

Correct mime output - fix #96 #97

Merged
merged 1 commit into from
Jun 16, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions fido/fido.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,13 +324,13 @@ class Info:
obj.formatname = f.find('name').text
obj.signaturename = sig_name
mime = f.find('mime')
obj.mimetype = mime.text if mime else None
obj.mimetype = mime.text if mime is not None else None
version = f.find('version')
obj.version = version.text if version else None
obj.version = version.text if version is not None else None
alias = f.find('alias')
obj.alias = alias.text if alias else None
obj.alias = alias.text if alias is not None else None
apple_uti = f.find('apple_uid')
obj.apple_uti = apple_uti.text if apple_uti else None
obj.apple_uti = apple_uti.text if apple_uti is not None else None
sys.stdout.write(self.printmatch % {
"info.time": obj.time,
"info.puid": obj.puid,
Expand Down