commit
						56fddf1f00
					
				@ -263,7 +263,7 @@ class Manager(object):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        # lock the socket and send our command
 | 
					        # lock the socket and send our command
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            self._sock.write(command.encode('ascii'))
 | 
					            self._sock.write(command.encode('utf8'))
 | 
				
			||||||
            self._sock.flush()
 | 
					            self._sock.flush()
 | 
				
			||||||
        except socket.error as e:
 | 
					        except socket.error as e:
 | 
				
			||||||
            raise ManagerSocketException(e.errno, e.strerror)
 | 
					            raise ManagerSocketException(e.errno, e.strerror)
 | 
				
			||||||
@ -291,7 +291,7 @@ class Manager(object):
 | 
				
			|||||||
            try:
 | 
					            try:
 | 
				
			||||||
                lines = []
 | 
					                lines = []
 | 
				
			||||||
                for line in self._sock:
 | 
					                for line in self._sock:
 | 
				
			||||||
                    line = line.decode('ascii')
 | 
					                    line = line.decode('utf8')
 | 
				
			||||||
                    # check to see if this is the greeting line
 | 
					                    # check to see if this is the greeting line
 | 
				
			||||||
                    if not self.title and '/' in line and not ':' in line:
 | 
					                    if not self.title and '/' in line and not ':' in line:
 | 
				
			||||||
                        # store the title of the manager we are connecting to:
 | 
					                        # store the title of the manager we are connecting to:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user