python3 compatible

This commit is contained in:
Gordon Shumway 2019-02-24 15:19:49 -05:00 committed by GitHub
parent 2e69c1e2da
commit f735b07cf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -71,8 +71,8 @@ if __name__ == '__main__':
t.add(line.strip())
mem = resource.getrusage(resource.RUSAGE_SELF).ru_maxrss
elapsed = time.time() - start
print('Trie created in %g seconds.' % elapsed)
print('Used %dMB RAM.' % (mem/1024))
print(('Trie created in %g seconds.' % elapsed))
print(('Used %dMB RAM.' % (mem/1024)))
else:
# Regular sanity test
t = Trie()