make sure files are read in binary mode
This commit is contained in:
		
							parent
							
								
									0d61cc446f
								
							
						
					
					
						commit
						5253e4c6ca
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -84,7 +84,7 @@ class File(File): | |||
|     data = None | ||||
| 
 | ||||
|     def getData(self, num=-1): | ||||
|         f = open(self.address, 'r') | ||||
|         f = open(self.address, 'rb') | ||||
|         data = f.read(num) | ||||
|         f.close() | ||||
|         return data | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue