@@ -883,26 +883,26 @@ def _clean_options(self, options, engine):
883
883
# C engine not supported yet
884
884
if engine == 'c' :
885
885
if options ['skipfooter' ] > 0 :
886
- fallback_reason = "the 'c' engine does not support" \
887
- " skipfooter"
886
+ fallback_reason = ( "the 'c' engine does not support"
887
+ " skipfooter" )
888
888
engine = 'python'
889
889
890
890
encoding = sys .getfilesystemencoding () or 'utf-8'
891
891
if sep is None and not delim_whitespace :
892
892
if engine == 'c' :
893
- fallback_reason = "the 'c' engine does not support" \
894
- " sep=None with delim_whitespace=False"
893
+ fallback_reason = ( "the 'c' engine does not support"
894
+ " sep=None with delim_whitespace=False" )
895
895
engine = 'python'
896
896
elif sep is not None and len (sep ) > 1 :
897
897
if engine == 'c' and sep == r'\s+' :
898
898
result ['delim_whitespace' ] = True
899
899
del result ['delimiter' ]
900
900
elif engine not in ('python' , 'python-fwf' ):
901
901
# wait until regex engine integrated
902
- fallback_reason = "the 'c' engine does not support" \
903
- " regex separators (separators > 1 char and" \
904
- r" different from '\s+' are" \
905
- " interpreted as regex)"
902
+ fallback_reason = ( "the 'c' engine does not support"
903
+ " regex separators (separators > 1 char and"
904
+ r" different from '\s+' are"
905
+ " interpreted as regex)" )
906
906
engine = 'python'
907
907
elif delim_whitespace :
908
908
if 'python' in engine :
@@ -915,10 +915,10 @@ def _clean_options(self, options, engine):
915
915
except UnicodeDecodeError :
916
916
encodeable = False
917
917
if not encodeable and engine not in ('python' , 'python-fwf' ):
918
- fallback_reason = "the separator encoded in {encoding}" \
919
- " is > 1 char long, and the 'c' engine" \
920
- " does not support such separators" . format (
921
- encoding = encoding )
918
+ fallback_reason = ( "the separator encoded in {encoding}"
919
+ " is > 1 char long, and the 'c' engine"
920
+ " does not support such separators"
921
+ . format ( encoding = encoding ) )
922
922
engine = 'python'
923
923
924
924
quotechar = options ['quotechar' ]
@@ -3203,8 +3203,8 @@ def _clean_index_names(columns, index_col):
3203
3203
index_names .append (name )
3204
3204
3205
3205
# hack
3206
- if isinstance (index_names [0 ], compat .string_types )\
3207
- and 'Unnamed' in index_names [0 ]:
3206
+ if ( isinstance (index_names [0 ], compat .string_types ) and
3207
+ 'Unnamed' in index_names [0 ]) :
3208
3208
index_names [0 ] = None
3209
3209
3210
3210
return index_names , columns , index_col
0 commit comments