mirror of
				https://github.com/python-escpos/python-escpos
				synced 2025-10-23 09:30:00 +00:00 
			
		
		
		
	Fix for string operation
* With Python version 3 data and text are treated different. Convert the * text accordingly.
This commit is contained in:
		| @@ -159,6 +159,9 @@ class File(Escpos): | ||||
|  | ||||
|     def _raw(self, msg): | ||||
|         """ Print any command sent in raw format """ | ||||
|         if type(msg) is str: | ||||
|             self.device.write(msg.encode()); | ||||
|         else: | ||||
|             self.device.write(msg); | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Christoph Heuel
					Christoph Heuel