Recursive generator detection makes my head hurt, but I think this works. Good luck.
Merge pull request #42 from njl/recursive-decorator-detection

Recursive generator detection makes my head hurt, but I think this works...