Make Python code more idiomatic

This commit is contained in:
JoeLametta
2018-05-02 08:45:00 +00:00
parent a484815106
commit 2b4140d300
12 changed files with 24 additions and 27 deletions

View File

@@ -30,7 +30,7 @@ def _diff(old, new, desc):
def diffStrings(orig, new, desc='input'):
assert type(orig) == type(new), 'type %s and %s are different' % (
assert isinstance(orig, type(new)), 'type %s and %s are different' % (
type(orig), type(new))
def _tolines(s):