code: def file_is_seekable(f):
  	'''
  	Returns True if file `f` is seekable, and False if not
  	
  	Useful to determine, for example, if `f` is STDOUT to 
  	a pipe.
  	'''
  	try:
  		f.tell()
  		logger.info("File is seekable!")
  	except IOError, e:
  		if e.errno == errno.ESPIPE:
  			return False
  		else:
  			raise
  	return Truf file_is_seekable(f):
  	'''
  	Returns True if file `f` is seekable, and False if not
  	
  	Useful to determine, for example, if `f` is STDOUT to 
  	a pipe.
  	'''
  	try:
  		f.tell()
  		logger.info("File is seekable!")
  	except IOError, e:
  		if e.errno == errno.ESPIPE:
  			return False
  		else:
  			raise
  	return True
docs: Returns True if file `f` is seekable, and False if not
  	
  	Useful to determine, for example, if `f` is STDOUT to 
  	a pipe.