old_contents: import inspect
  
  from pylons.controllers.util import abort
  
  import account
  import badge
  import dataset
  import view
  
  
  class Requirement(object):
  
      """ Checks a function call and raises an exception if the
      function returns a non-True value. """
  
      def __init__(self, wrapped):
          self.wrapped = wrapped
  
      def __getattr__(self, attr):
          real = getattr(self.wrapped, attr)
          return Requirement(real)
  
      def __call__(self, *args, **kwargs):
          fc = self.wrapped(*args, **kwargs)
          if fc is not True:
              raise abort(403, 'Sorry, you\'re not permitted to do this.')
          return fc
  
      @classmethod
      def here(cls):
          module = inspect.getmodule(cls)
          return cls(module)
  
  require = Requirement.here()
  
new_contents: import inspect
  
  from pylons.controllers.util import abort
  
  
  class Requirement(object):
  
      """ Checks a function call and raises an exception if the
      function returns a non-True value. """
  
      def __init__(self, wrapped):
          self.wrapped = wrapped
  
      def __getattr__(self, attr):
          real = getattr(self.wrapped, attr)
          return Requirement(real)
  
      def __call__(self, *args, **kwargs):
          fc = self.wrapped(*args, **kwargs)
          if fc is not True:
              raise abort(403, 'Sorry, you\'re not permitted to do this.')
          return fc
  
      @classmethod
      def here(cls):
          module = inspect.getmodule(cls)
          return cls(module)
  
  require = Requirement.here()
  
subject: Remove unused imports