56 @keyparam closefd close underlying file descriptor if given as file |
54 @keyparam closefd close underlying file descriptor if given as file |
57 parameter (boolean) |
55 parameter (boolean) |
58 @exception NotImplementedError for not implemented method parameters |
56 @exception NotImplementedError for not implemented method parameters |
59 """ |
57 """ |
60 self.__encoding = encoding |
58 self.__encoding = encoding |
61 self.__newline = newline |
59 self.__newline = str(newline) |
62 self.__closefd = closefd |
60 self.__closefd = closefd |
63 if newline is not None: |
61 if newline is not None: |
64 if 'r' in mode: |
62 if 'r' in mode: |
65 raise NotImplementedError |
63 raise NotImplementedError |
66 else: |
64 else: |