Utilities/compatibility_fixes.py

branch
Py2 comp.
changeset 3145
a9de05d4a22f
parent 3065
070b35dde35e
child 3515
1b8381afe38f
equal deleted inserted replaced
3144:bb63e24383e4 3145:a9de05d4a22f
8 8
9 The Eric5 used features are emulated only. The not emulated features 9 The Eric5 used features are emulated only. The not emulated features
10 should throw a NotImplementedError exception. 10 should throw a NotImplementedError exception.
11 """ 11 """
12 12
13 from __future__ import unicode_literals # __IGNORE_WARNING__ 13 from __future__ import unicode_literals
14 14
15 import __builtin__ 15 import __builtin__
16 import codecs 16 import codecs
17 17
18 18
72 if errors is None: 72 if errors is None:
73 self.__errors = 'strict' 73 self.__errors = 'strict'
74 else: 74 else:
75 self.__errors = errors 75 self.__errors = errors
76 76
77 file.__init__(self, filein, mode, buffering) 77 file.__init__(self, filein, mode, buffering) #__IGNORE_WARNING__
78 78
79 def read(self, n=-1): 79 def read(self, n=-1):
80 """ 80 """
81 Read n bytes or all if n=-1 from file. 81 Read n bytes or all if n=-1 from file.
82 82

eric ide

mercurial