      def get(self, request, auth, unique_id):
          """Return the highlighted snippet."""
          pathname = os.path.join(HIGHLIGHTED_CODE_DIR, unique_id)
          if not os.path.exists(pathname):
              return Resource(status.HTTP_404_NOT_FOUND)
          return open(pathname, 'r').read()
  
      def delete(self, request, auth, unique_id):
          """Delete the highlighted snippet."""
          pathname = os.path.join(HIGHLIGHTED_CODE_DIR, unique_id)
 
</s> remove     def delete(self, request, auth, unique_id):
 </s> add     def delete(self, request, unique_id): </s> remove             return Resource(status.HTTP_404_NOT_FOUND)
 </s> add             return Response(status.HTTP_404_NOT_FOUND) </s> remove     def get(self, request, auth, unique_id):
 </s> add     def get(self, request, unique_id): </s> remove     allowed_methods = anon_allowed_methods = ('GET',)
 </s> add  </s> remove         lexer = get_lexer_by_name(content['lexer'])
        linenos = 'table' if content['linenos'] else False
        options = {'title': content['title']} if content['title'] else {}
        formatter = HtmlFormatter(style=content['style'], linenos=linenos, full=True, **options)
 </s> add         lexer = get_lexer_by_name(self.CONTENT['lexer'])
        linenos = 'table' if self.CONTENT['linenos'] else False
        options = {'title': self.CONTENT['title']} if self.CONTENT['title'] else {}
        formatter = HtmlFormatter(style=self.CONTENT['style'], linenos=linenos, full=True, **options)
            return Response(status.HTTP_404_NOT_FOUND)
      def get(self, request, auth, unique_id):
          """Return the highlighted snippet."""
          pathname = os.path.join(HIGHLIGHTED_CODE_DIR, unique_id)
          if not os.path.exists(pathname):
            return Response(status.HTTP_404_NOT_FOUND)
          return open(pathname, 'r').read()
  
      def delete(self, request, auth, unique_id):
          """Delete the highlighted snippet."""
          pathname = os.path.join(HIGHLIGHTED_CODE_DIR, unique_id)
keep keep keep keep replace keep keep keep keep keep
 Fix up tests and examples after refactoring 
examples/pygments_api/views.py