mirror of
				https://github.com/Klipper3d/klipper.git
				synced 2025-10-31 02:15:52 +01:00 
			
		
		
		
	console: Use regular str() types for commands on Python2
Avoid using unicode() types on Python2 as it can lead to subtle errors. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
		| @@ -187,7 +187,7 @@ class KeyboardReader: | |||||||
|                 return None |                 return None | ||||||
|         return line |         return line | ||||||
|     def process_kbd(self, eventtime): |     def process_kbd(self, eventtime): | ||||||
|         self.data += os.read(self.fd, 4096).decode() |         self.data += str(os.read(self.fd, 4096).decode()) | ||||||
|  |  | ||||||
|         kbdlines = self.data.split('\n') |         kbdlines = self.data.split('\n') | ||||||
|         for line in kbdlines[:-1]: |         for line in kbdlines[:-1]: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user