Skip to content

Commit ee4643a

Browse files
authored
correct deprecation (#226)
1 parent 7b3692c commit ee4643a

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2.0.8
2+
Correct deprecation warning #225
3+
14
2.0.7
25
Add --show-no-spaces #173
36

icdiff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import unicodedata
2525
import codecs
2626
import fnmatch
2727

28-
__version__ = "2.0.7"
28+
__version__ = "2.0.8"
2929

3030
# Exit code constants
3131
EXIT_CODE_SUCCESS = 0
@@ -877,7 +877,7 @@ def diff(options, a, b):
877877

878878
def read_file(fname, options):
879879
try:
880-
with codecs.open(fname, encoding=options.encoding, mode="rb") as inf:
880+
with open(fname, encoding=options.encoding) as inf:
881881
return inf.readlines()
882882
except UnicodeDecodeError as e:
883883
codec_print(

0 commit comments

Comments
 (0)