fabianp/memory_profiler — pull request #4 by octavo (2012-05-14 05:56:16+00:00)
Title: Fix Python3 Support

This patch fixes issue #3:
+ Changes old string formatting to the new string formatting
+ README formatting fixes
+ Makes it so that you can run memory_profiler with py3

```
$ python3 memory_profiler.py ~/myscript.py
memory_profiler.py:19: UserWarning: psutil module not found. This module provides speed enhacements and windows support
warnings.warn("psutil module not found. This module provides "
Line # Mem usage Increment Line Contents
==============================================
1 @profile
2 8.95 MB 0.00 MB def f():
3 8.98 MB 0.03 MB a = 5
4 8.98 MB 0.00 MB b = a
5 12.87 MB 3.89 MB c = list(range(100000))
6 10.46 MB -2.41 MB del c
```

It works!