@@ -61,7 +61,7 @@ def _decode_item(item):
61
61
62
62
def _build_plaintext_items (plaintext_file , version ):
63
63
# pylint: disable=too-many-locals
64
- with open (plaintext_file ) as f :
64
+ with open (plaintext_file , encoding = "utf-8" ) as f :
65
65
plaintext_data = json .load (f )
66
66
67
67
actions = {}
@@ -92,7 +92,7 @@ def _build_plaintext_items(plaintext_file, version):
92
92
93
93
94
94
def _load_ciphertext_items (ciphertext_file ):
95
- with open (ciphertext_file ) as f :
95
+ with open (ciphertext_file , encoding = "utf-8" ) as f :
96
96
ciphertexts = json .load (f )
97
97
98
98
for _table , items in ciphertexts .items ():
@@ -103,7 +103,7 @@ def _load_ciphertext_items(ciphertext_file):
103
103
104
104
105
105
def _load_keys (keys_file ):
106
- with open (keys_file ) as f :
106
+ with open (keys_file , encoding = "utf-8" ) as f :
107
107
return json .load (f )
108
108
109
109
@@ -165,7 +165,7 @@ def _meta_table_prep(table_name, items_filename):
165
165
table = boto3 .resource ("dynamodb" , region_name = "us-west-2" ).Table (table_name )
166
166
table .wait_until_exists ()
167
167
try :
168
- with open (_filename_from_uri (items_filename )) as f :
168
+ with open (_filename_from_uri (items_filename ), encoding = "utf-8" ) as f :
169
169
table_data = json .load (f )
170
170
request_items = {}
171
171
@@ -255,7 +255,7 @@ def _expand_items(ciphertext_items, plaintext_items):
255
255
256
256
def load_scenarios (online ):
257
257
# pylint: disable=too-many-locals
258
- with open (_SCENARIO_FILE ) as f :
258
+ with open (_SCENARIO_FILE , encoding = "utf-8" ) as f :
259
259
scenarios = json .load (f )
260
260
keys_file = _filename_from_uri (scenarios ["keys" ])
261
261
keys = _load_keys (keys_file )
0 commit comments