old_contents: # Copyright 2015 Curtis Sand
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  #
  #     http://www.apache.org/licenses/LICENSE-2.0
  #
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
  
  """Flask view objects for the netify app."""
  
  from flask.views import View
  
  from .app import APP
  from .template import render_template
  from .template import HtmlPage
  
  
  class Views(list):
      def __init__(self):
          super(Views, self).__init__([Index])
  
  
  class Index(View):
      name = 'index'
      default_route = '/'
  
      @classmethod
      def register(cls, app, route=None):
          if not route:
              route = cls.default_route
          app.add_url_rule(route, view_func=cls.as_view(cls.name))
  
      def dispatch_request(self):
          return render_template(HtmlPage(head=None,
                                          body='Hello World').build())
  
new_contents: # Copyright 2015 Curtis Sand
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  #
  #     http://www.apache.org/licenses/LICENSE-2.0
  #
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
  
  """Flask view objects for the netify app."""
  
  from flask.views import View
  
  from .template import render_template
  from .template import HtmlPage
  
  
  class Views(list):
      def __init__(self):
          super(Views, self).__init__([Index])
  
  
  class Index(View):
      name = 'index'
      default_route = '/'
  
      @classmethod
      def register(cls, app, route=None):
          if not route:
              route = cls.default_route
          app.add_url_rule(route, view_func=cls.as_view(cls.name))
  
      def dispatch_request(self):
          return render_template(HtmlPage(head=None,
                                          body='Hello World').build())
  
subject: remove unused import of app module