Commits

Jason R. Coombs committed dbd740e

Removed excess whitespace

  • Participants
  • Parent commits 6d1be98

Comments (0)

Files changed (1)

File jaraco/net/http/caching.py

 		if request.get_method() is not 'GET':
 			# defer to other handlers
 			return None
-		
+
 		self._convert_pragma(request.headers)
 
 		# check the request cache-control header
 		cc = self._parse_cache_control(request.headers)
-		
+
 		# check that the user-agent hasn't asked us to bypass the cache
 		if 'no-cache' in cc:
 			return None
-				
+
 		# get the cached response, or None if it's not found
 		cached_resp = CachedResponse.load(self.store.get(key))
 		if not cached_resp and 'only-if-cached' in cc:
 			raise urllib2.HTTPError(request.get_full_url(), 504,
 				'content is not cached', hdrs=None, fp=None)
-		
+
 		if cached_resp and not cached_resp.fresh_for(request.headers):
 			log.debug('request is stale')
 			self._add_stale_cache_request_headers(request, cached_resp)
 	def _parse_cache_control(headers):
 		"""
 		Parse the cache-control header.
-		
+
 		>>> pcc = CacheHandler._parse_cache_control
 		>>> sample = {'cache-control':'max-age=3, bar=baz, Foo'}
 		>>> sorted(pcc(sample).items())
 			name, sep, val = map(str.lower, map(str.strip,
 				part.partition('=')))
 			return name, (val or None)
-			
+
 		cc_header = headers.get('cache-control', '')
 		return dict(map(parse_part, cc_header.split(',')))
 
 	cached responses.
 	"""
 	cached = True
-	
+
 	@classmethod
 	def from_response(cls, response):
 		cr = cls(response.read())