Prefer io over cStringIO and StringIO
This commit is contained in:
		
							parent
							
								
									1642d0669f
								
							
						
					
					
						commit
						9806e401e0
					
				|  | @ -131,11 +131,11 @@ except ImportError: | ||||||
|     PARSER_TYPE_STR = 'string' |     PARSER_TYPE_STR = 'string' | ||||||
| 
 | 
 | ||||||
| try: | try: | ||||||
|     from cStringIO import StringIO |     from io import StringIO, BytesIO, TextIOWrapper, FileIO | ||||||
|     BytesIO = None |  | ||||||
| except ImportError: | except ImportError: | ||||||
|     try: |     try: | ||||||
|         from io import StringIO, BytesIO, TextIOWrapper, FileIO |         from cStringIO import StringIO | ||||||
|  |         BytesIO = None | ||||||
|     except ImportError: |     except ImportError: | ||||||
|         from StringIO import StringIO |         from StringIO import StringIO | ||||||
|         BytesIO = None |         BytesIO = None | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue