summaryrefslogtreecommitdiff
path: root/day1/task3
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2019-03-04 20:59:43 +0400
committerAndrew <saintruler@gmail.com>2019-03-04 20:59:43 +0400
commitca19bb3090829b64b04a0814d223f03e4693f13f (patch)
tree98b3e48f64ffa88bea302b1982268a13a107a44b /day1/task3
parent7e551b94d0b9bf10ae1def6123e1389962893a2f (diff)
Task 3 fixed
Diffstat (limited to 'day1/task3')
-rw-r--r--day1/task3/task3.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/day1/task3/task3.py b/day1/task3/task3.py
index a456af9..6d328ac 100644
--- a/day1/task3/task3.py
+++ b/day1/task3/task3.py
@@ -9,10 +9,10 @@ else:
with open(file_path, 'w', encoding='utf-8') as f:
f.write('Ало здравствуйте. Alo zdravstvuite.')
- with open(file_path, 'w', encoding='windows-1251') as f:
+ with open(file_path, encoding='cp1251') as f:
print(f.read())
- with open(file_path, 'w', encoding='utf-8') as f:
+ with open(file_path, encoding='utf-8') as f:
print(f.read())
os.remove(file_path)