File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
- ## 0.10.0 :
3
+ ## 0.10.0 : 01.06.2020
4
4
5
- - ** Change** : All package exceptions inherits from ` ApiFormException `
5
+ - ** Change** : All package exceptions inherits from ` ApiFormException ` .
6
+ - ** Fix** : Specifying encoding while opening files in ` setup.py ` (failing on Windows OS).
6
7
7
8
## 0.9.0 : 11.05.2020
8
9
Original file line number Diff line number Diff line change 10
10
def read_files (files ):
11
11
data = []
12
12
for file in files :
13
- with open (file ) as f :
14
- data .append (f .read ())
13
+ with open (file , encoding = 'utf-8' ) as my_file :
14
+ data .append (my_file .read ())
15
15
return "\n " .join (data )
16
16
17
17
18
18
meta = {}
19
- with open ('django_api_forms/version.py' ) as f :
19
+ with open ('django_api_forms/version.py' , encoding = 'utf-8' ) as f :
20
20
exec (f .read (), meta )
21
21
22
22
setup (
You can’t perform that action at this time.
0 commit comments