                  self._patterns.setdefault(extension, []).append(compiled)
  
      def hashed_name(self, name, content=None):
          parsed_name = urlsplit(unquote(name))
          clean_name = parsed_name.path
          if content is None:
              if not self.exists(clean_name):
                  raise ValueError("The file '%s' could not be found with %r." %
                                   (clean_name, self))
              try:
 
</s> remove         self.assertEqual(relpath, "cached/denorm.363de96e9b4b.css")
 </s> add         self.assertEqual(relpath, "cached/denorm.c5bd139ad821.css")
        clean_name = parsed_name.path.strip()
                  self._patterns.setdefault(extension, []).append(compiled)
  
      def hashed_name(self, name, content=None):
          parsed_name = urlsplit(unquote(name))
        clean_name = parsed_name.path.strip()
          if content is None:
              if not self.exists(clean_name):
                  raise ValueError("The file '%s' could not be found with %r." %
                                   (clean_name, self))
              try:
keep keep keep keep replace keep keep keep keep keep
 Fixed #17865 -- Strip whitespaces from the paths when using the CachedStaticFilesStorage backend.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17696 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/contrib/staticfiles/storage.py