Skip to content

Commit ec443a8

Browse files
committed
Add documentation for open_kwargs, fix untitaker#56
1 parent de33f6f commit ec443a8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

atomicwrites/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ class AtomicWriter(object):
124124
:param overwrite: If set to false, an error is raised if ``path`` exists.
125125
Errors are only raised after the file has been written to. Either way,
126126
the operation is atomic.
127+
:param open_kwargs: Keyword-arguments to pass to the underlying :py:func:`open`
128+
call. This can be used to set the encoding when opening files in
129+
text-mode.
127130
128131
If you need further control over the exact behavior, you are encouraged to
129132
subclass.

0 commit comments

Comments
 (0)