From 48deda6606e23b8dd294a76f17ba7a5797d74f0c 2014-01-16 10:57:12 From: Jonathan Frederic Date: 2014-01-16 10:57:12 Subject: [PATCH] Further indentation cleanup --- diff --git a/IPython/html/widgets/widget.py b/IPython/html/widgets/widget.py index 7923d5f..c5c95a0 100644 --- a/IPython/html/widgets/widget.py +++ b/IPython/html/widgets/widget.py @@ -37,7 +37,7 @@ class BaseWidget(LoggingConfigurable): # Shared declarations (Class level) _keys = List(Unicode, default_value = [], - help="List of keys comprising the state of the model.", allow_none=False) + help="List of keys comprising the state of the model.", allow_none=False) widget_construction_callback = None def on_widget_constructed(callback): @@ -198,7 +198,7 @@ class BaseWidget(LoggingConfigurable): A single property's name to sync with the frontend. """ self._send({"method": "update", - "state": self.get_state()}) + "state": self.get_state()}) def get_state(self, key=None): """Gets the widget state, or a piece of it. @@ -241,7 +241,7 @@ class BaseWidget(LoggingConfigurable): Content of the message to send. """ self._send({"method": "custom", - "custom_content": content}) + "custom_content": content}) def on_msg(self, callback, remove=False): @@ -423,8 +423,8 @@ class Widget(BaseWidget): be added to. """ self.send({"msg_type": "add_class", - "class_list": class_name, - "selector": selector}) + "class_list": class_name, + "selector": selector}) def remove_class(self, class_name, selector=""): @@ -440,8 +440,8 @@ class Widget(BaseWidget): be removed from. """ self.send({"msg_type": "remove_class", - "class_list": class_name, - "selector": selector}) + "class_list": class_name, + "selector": selector}) def view(self, view_name=None): diff --git a/IPython/html/widgets/widget_view.py b/IPython/html/widgets/widget_view.py index 06ec40a..bd80b27 100644 --- a/IPython/html/widgets/widget_view.py +++ b/IPython/html/widgets/widget_view.py @@ -23,5 +23,5 @@ class ViewWidget(BaseWidget): target_name = Unicode('ViewModel') def __init__(self, widget, view): - self.default_view_name = view - self.widget = widget + self.default_view_name = view + self.widget = widget