python3 agi _quote
This commit is contained in:
		
							parent
							
								
									4f303e668e
								
							
						
					
					
						commit
						d81fa0ea5f
					
				@ -129,6 +129,9 @@ class AGI:
 | 
				
			|||||||
          string = str(string)
 | 
					          string = str(string)
 | 
				
			||||||
        if isinstance(string, float):
 | 
					        if isinstance(string, float):
 | 
				
			||||||
          string = str(string)
 | 
					          string = str(string)
 | 
				
			||||||
 | 
					        if PY3:
 | 
				
			||||||
 | 
					            return ''.join(['"', string, '"'])
 | 
				
			||||||
 | 
					        else:
 | 
				
			||||||
            return ''.join(['"', string.encode('utf8', 'ignore'), '"'])
 | 
					            return ''.join(['"', string.encode('utf8', 'ignore'), '"'])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def _handle_sighup(self, signum, frame):
 | 
					    def _handle_sighup(self, signum, frame):
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user