We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 694a22b commit 9f5d2e6Copy full SHA for 9f5d2e6
e2e-tests/cmd_test.py
@@ -23,14 +23,14 @@ def _get_transcription(self, filename):
23
def _update_translation(self, directory):
24
metadata_file = os.path.join(directory, "utterance_metadata_cat.json")
25
26
- with open(metadata_file, encoding="utf-8", "r") as file:
+ with open(metadata_file, "r", encoding="utf-8") as file:
27
text = file.read()
28
29
text = text.replace(
30
"I m'encanta aquesta ciutat.", "I m'encanta aquesta ciutat tant meva."
31
)
32
33
- with open(metadata_file, encoding="utf-8", "w") as file:
+ with open(metadata_file, "w", encoding="utf-8") as file:
34
file.write(text)
35
36
def _get_utterances(self, directory):
0 commit comments