We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8afd6c7 commit ecf5673Copy full SHA for ecf5673
pysenal/io/file.py
@@ -287,12 +287,12 @@ class __BaseFile(object):
287
def __init__(self, filename, encoding, is_remove=False):
288
self.filename = filename
289
self.encoding = encoding
290
- if is_remove not in {True, False}:
291
- print('')
+ if not isinstance(is_remove, bool):
+ raise TypeError('is_remove must be bool value')
292
if is_remove and os.path.exists(filename):
293
os.remove(filename)
294
self._file = None
295
- self.logger = get_logger('IO')
+ self.logger = get_logger('FileWrapper')
296
297
def read(self):
298
self._to_read()
0 commit comments