def do_GET( self ):
		global murky, files, config
		
		if 1 > len( self.path ):
			try:
				resid = int( self.path[1:] )
				#print "Fetching", resid
				if resid in files:
					content = files[resid]
				else:
					content = murky.fetch( resid )
				if content:
					self.send_response( 200 )
					self.end_headers()
					self.wfile.write( content )
				else:
					self.send_response( 404 )
					self.end_headers()
					

			except ValueError:
				self.send_response( 404 )
				self.end_headers()
				return
		else:
			self.send_response( 404 )
			self.end_headers()
		#self.send_response( 200 )
		#self.end_headers()
		return
dataset/ETHPy150Open mgronhol/pouring-rain/mw-http.py/MurkyProxy.do_GET/swapped operands of `>`