old_contents: import functools
  
  from flask import request
  
  from api.waffle.utils import flag_is_active
  from website.ember_osf_web.views import use_ember_app
  
  
  def ember_flag_is_active(flag_name):
      """
      Decorator for checking whether ember flag is active.  If so, proxy to ember
      app, otherwise, load old view.
      """
      def decorator(func):
          @functools.wraps(func)
          def wrapped(*args, **kwargs):
              if flag_is_active(request, flag_name):
                  return use_ember_app()
              else:
                  return func(*args, **kwargs)
          return wrapped
      return decorator
  
new_contents: import waffle
  import functools
  
  from flask import request
  
  from website.ember_osf_web.views import use_ember_app
  
  
  def ember_flag_is_active(flag_name):
      """
      Decorator for checking whether ember flag is active.  If so, proxy to ember
      app, otherwise, load old view.
      """
      def decorator(func):
          @functools.wraps(func)
          def wrapped(*args, **kwargs):
              if waffle.flag_is_active(request, flag_name):
                  return use_ember_app()
              else:
                  return func(*args, **kwargs)
          return wrapped
      return decorator
  
subject: fix for travis