Skip to content

Commit

Permalink
Fix config text fill for Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
bittremieux committed Jul 10, 2019
1 parent a21f208 commit 1c8f6b9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ann_solo/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import argparse
import textwrap

import configargparse

Expand All @@ -7,9 +8,9 @@ class NewlineTextHelpFormatter(argparse.HelpFormatter):

def _fill_text(self, text, width, indent):
return '\n'.join(
argparse._textwrap.fill(line, width, initial_indent=indent,
subsequent_indent=indent,
replace_whitespace=False).strip()
textwrap.fill(line, width, initial_indent=indent,
subsequent_indent=indent,
replace_whitespace=False).strip()
for line in text.splitlines(keepends=True))


Expand Down

0 comments on commit 1c8f6b9

Please sign in to comment.