rootpy/rootpy — pull request #41 by ekfriis (2012-10-12 11:56:38+00:00)
Title: Protect against AttributeError in case of Canvas.Divide

In case one does a TCanvas.Divide, the object in _globals.pad
can be a TPad, not a rootpy.Pad. This protects against an AttributeError.

One other possible solution - make

https://github.com/uwcms/rootpy/pull/new/master#L0L355

return `asrootpy(_globals.pad)`. However, when I tried to import
asrootpy from ..utils, there is a circular import.