fortharris/Pcode — pull request #5 by takluyver (2013-08-26 18:22:45+00:00)
Title: Fix errors with creating outline view

Pcode was spewing out tonnes of errors like this when I defined a top-level function:

```
Traceback (most recent call last):
File "/home/takluyver/Code/Pcode/Extensions/Outline/Outline.py", line 81, in updateOutline
methods = sorted(obj.methods.items(), key=itemgetter(1))
AttributeError: 'Function' object has no attribute 'methods'
```

This fixes that. It still produces TokenErrors when I'm half-way through typing a line, but that's a separate issue.