Advertisement
Guest User

mmio.py diff (python 2 vs python 3)

a guest
Mar 22nd, 2012
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.84 KB | None | 0 0
  1. 204c204
  2. <                 rows,cols = map(float, line)
  3. ---
  4. >                 rows,cols = list(map(float, line))
  5. 209c209
  6. <                 rows, cols, entries = map(float, line)
  7. ---
  8. >                 rows, cols, entries = list(map(float, line))
  9. 368c368
  10. <                     aij = complex(*map(float,line.split()))
  11. ---
  12. >                     aij = complex(*list(map(float,line.split())))
  13. 400c400
  14. <                 i,j = map(int,l[:2])
  15. ---
  16. >                 i,j = list(map(int,l[:2]))
  17. 403c403
  18. <                     aij = complex(*map(float,l[2:]))
  19. ---
  20. >                     aij = complex(*list(map(float,l[2:])))
  21. 613c613
  22. <         print 'Reading',filename,'...',
  23. ---
  24. >         print('Reading',filename,'...', end=' ')
  25. 617c617
  26. <         print 'took %s seconds' % (time.time() - t)
  27. ---
  28. >         print('took %s seconds' % (time.time() - t))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement