@@ -1045,15 +1045,15 @@ def configure_intl(o):
1045
1045
if nodedownload .candownload (auto_downloads , "icu" ):
1046
1046
nodedownload .retrievefile (url , targetfile )
1047
1047
else :
1048
- print (' Re-using existing %s' % targetfile )
1048
+ print ('Re-using existing %s' % targetfile )
1049
1049
if os .path .isfile (targetfile ):
1050
- sys . stdout . write ( ' Checking file integrity with MD5:\r ' )
1050
+ print ( ' Checking file integrity with MD5:\r ' )
1051
1051
gotmd5 = nodedownload .md5sum (targetfile )
1052
- print (' MD5: %s %s' % (gotmd5 , targetfile ))
1052
+ print ('MD5: %s %s' % (gotmd5 , targetfile ))
1053
1053
if (md5 == gotmd5 ):
1054
1054
return targetfile
1055
1055
else :
1056
- print (' Expected: %s *MISMATCH*' % md5 )
1056
+ print ('Expected: %s *MISMATCH*' % md5 )
1057
1057
print ('\n ** Corrupted ZIP? Delete %s to retry download.\n ' % targetfile )
1058
1058
return None
1059
1059
icu_config = {
@@ -1191,7 +1191,7 @@ def configure_intl(o):
1191
1191
os .rename (tmp_icu , icu_full_path )
1192
1192
shutil .rmtree (icu_tmp_path )
1193
1193
else :
1194
- print (' Error: --with-icu-source=%s did not result in an "icu" dir.' % \
1194
+ print ('Error: --with-icu-source=%s did not result in an "icu" dir.' % \
1195
1195
with_icu_source )
1196
1196
shutil .rmtree (icu_tmp_path )
1197
1197
sys .exit (1 )
@@ -1207,16 +1207,16 @@ def configure_intl(o):
1207
1207
if localzip :
1208
1208
nodedownload .unpack (localzip , icu_parent_path )
1209
1209
if not os .path .isdir (icu_full_path ):
1210
- print (' Cannot build Intl without ICU in %s.' % icu_full_path )
1211
- print (' (Fix, or disable with "--with-intl=none" )' )
1210
+ print ('Cannot build Intl without ICU in %s.' % icu_full_path )
1211
+ print ('(Fix, or disable with "--with-intl=none" )' )
1212
1212
sys .exit (1 )
1213
1213
else :
1214
1214
print ('* Using ICU in %s' % icu_full_path )
1215
1215
# Now, what version of ICU is it? We just need the "major", such as 54.
1216
1216
# uvernum.h contains it as a #define.
1217
1217
uvernum_h = os .path .join (icu_full_path , 'source/common/unicode/uvernum.h' )
1218
1218
if not os .path .isfile (uvernum_h ):
1219
- print (' Error: could not load %s - is ICU installed?' % uvernum_h )
1219
+ print ('Error: could not load %s - is ICU installed?' % uvernum_h )
1220
1220
sys .exit (1 )
1221
1221
icu_ver_major = None
1222
1222
matchVerExp = r'^\s*#define\s+U_ICU_VERSION_SHORT\s+"([^"]*)".*'
@@ -1226,7 +1226,7 @@ def configure_intl(o):
1226
1226
if m :
1227
1227
icu_ver_major = m .group (1 )
1228
1228
if not icu_ver_major :
1229
- print (' Could not read U_ICU_VERSION_SHORT version from %s' % uvernum_h )
1229
+ print ('Could not read U_ICU_VERSION_SHORT version from %s' % uvernum_h )
1230
1230
sys .exit (1 )
1231
1231
icu_endianness = sys .byteorder [0 ];
1232
1232
o ['variables' ]['icu_ver_major' ] = icu_ver_major
@@ -1253,8 +1253,8 @@ def configure_intl(o):
1253
1253
# this is the icudt*.dat file which node will be using (platform endianness)
1254
1254
o ['variables' ]['icu_data_file' ] = icu_data_file
1255
1255
if not os .path .isfile (icu_data_path ):
1256
- print (' Error: ICU prebuilt data file %s does not exist.' % icu_data_path )
1257
- print (' See the README.md.' )
1256
+ print ('Error: ICU prebuilt data file %s does not exist.' % icu_data_path )
1257
+ print ('See the README.md.' )
1258
1258
# .. and we're not about to build it from .gyp!
1259
1259
sys .exit (1 )
1260
1260
# map from variable name to subdirs
0 commit comments