  
  
  class BaseResource(Serializer):
      """
      Base class for all Resource classes, which simply defines the interface they provide.
      """
      fields = None
      include = None
      exclude = None
  
 
</s> remove     Objects that a resource can act on include plain Python object instances, Django Models, and Django QuerySets.
 </s> add     Objects that a resource can act on include plain Python object instances,
    Django Models, and Django QuerySets. </s> remove except ImportError: # python < 2.7
 </s> add except ImportError:  # python < 2.7 </s> remove         filepaths = [os.path.join(OBJECT_STORE_DIR, file) for file in os.listdir(OBJECT_STORE_DIR) if not file.startswith('.')]
 </s> add         filepaths = [os.path.join(OBJECT_STORE_DIR, file)
                     for file in os.listdir(OBJECT_STORE_DIR)
                     if not file.startswith('.')] </s> remove         pathname = os.path.join(OBJECT_STORE_DIR, key)
        pickle.dump(self.CONTENT, open(pathname, 'wb'))
 </s> add         filename = get_filename(key)
        pickle.dump(self.CONTENT, open(filename, 'wb'))

    Base class for all Resource classes, which simply defines the interface
    they provide.
  
  
  class BaseResource(Serializer):
      """
    Base class for all Resource classes, which simply defines the interface
    they provide.
      """
      fields = None
      include = None
      exclude = None
  
keep keep keep keep replace keep keep keep keep keep
 reverse takes request as a kwarg for compatibility with django's reverse 
djangorestframework/resources.py