import matplotlib.widgets as mwidgets

if not hasattr(mwidgets, 'AxesWidget'):
    branch = "<https://github.com/tonysyu/matplotlib/tree/base-widget>"
    msg = "mpltools.widgets requires a branch of Matplotlib: %s" % branch
    raise ImportError(msg)


from .rectangle_selector import RectangleSelector
from .slider import Slider


__all__ = ['RectangleSelector', 'Slider']


@@ -80,74 +80,56 @@
     
-branch = %22%3Chttps://github.com/tonysyu/matplotlib/tree/base-widget%3E
+version = %22(github master; after March 16, 2012)
 %22%0A  
@@ -167,16 +167,22 @@
 res 
-a branch
+recent version
  of 
@@ -195,22 +195,22 @@
 tlib
-:
  %25s%22 %25 
-branch
+version
 %0A   

Update MPL version requirement for `widgets`.