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

Port to Python 3 #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion activity/activity.info
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Activity]
name = Read SD Comics
bundle_id = org.laptop.ReadSDComics
exec = sugar-activity readsdcomics.ReadSDComics
exec = sugar-activity3 readsdcomics.ReadSDComics
activity_version = 3
icon = ReadSDComics
show_launcher = yes
Expand Down
6 changes: 3 additions & 3 deletions readsdcomics.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,10 +544,10 @@ def save_extracted_file(self, zipfile, filename):
"Extract the file to a temp directory for viewing"
try:
filebytes = zipfile.read(filename)
except BadZipfile, err:
print 'Error opening the zip file: %s' % (err)
except BadZipfile as err:
print('Error opening the zip file: %s' % (err))
return False
except KeyError, err:
except KeyError as err:
self._alert('Key Error', 'Zipfile key not found: ' + str(filename))
return
outfn = self.make_new_filename(filename)
Expand Down