Skip to content

Commit

Permalink
remove meaningless encoding parameter from convert_file
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Decker <christian.decker@homag.com>
  • Loading branch information
Christian Decker committed Aug 30, 2023
1 parent b99a74b commit 4e2fcd8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pypandoc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def convert_text(source:str, to:str, format:str, extra_args:Iterable=(), encodin


def convert_file(source_file:Union[list, str, Path, Generator], to:str, format:Union[str, None]=None,
extra_args:Iterable=(), encoding:str='utf-8', outputfile:Union[None, str, Path]=None,
extra_args:Iterable=(), outputfile:Union[None, str, Path]=None,
filters:Union[Iterable, None]=None, verify_format:bool=True, sandbox:bool=False,
cworkdir:Union[str, None]=None) -> str:
"""Converts given `source` from `format` to `to`.
Expand All @@ -116,8 +116,6 @@ def convert_file(source_file:Union[list, str, Path, Generator], to:str, format:U
:param list extra_args: extra arguments (list of strings) to be passed to pandoc
(Default value = ())
:param str encoding: the encoding of the file or the input bytes (Default value = 'utf-8')
:param str outputfile: output will be written to outputfile or the converted content
returned if None. The output filename can be specified as a string
or pathlib.Path object. (Default value = None)
Expand Down

0 comments on commit 4e2fcd8

Please sign in to comment.