snapshottest
snapshottest copied to clipboard
Remove Python 2 compatibility code
Good first issue for anyone looking to contribute. Support for Python <3.5 was dropped after the 0.6.0 release, so there are some leftover Python 2-isms that can be removed from the code:
- [ ] Drop
object
as a superclass—change allclass ClassName(object):
to justclass ClassName:
- [ ] Change all
super(ClassName, self).method(...)
calls to justsuper().method(...)
- [ ] Remove all
# -*- coding: utf-8 -*-
markers (source and generated snapshot headers) - [ ] Remove all
from __future__
imports (~source and~ generated snapshot headers)
[Note: you might be tempted to also update string formatting to use f-strings, but those aren't available until Python 3.6, so we'll need to hold off for now.]