예제 #1
0
 def _format_description(self, description):
     width = argparse.HelpFormatter('prog')._width
     return text.ensure_newlines(
         text.fill_paragraphs(text.dedent(description), width))
예제 #2
0
파일: base.py 프로젝트: jonadiazz/celery
 def format_description(self, description):
     return text.ensure_2lines(text.fill_paragraphs(
         text.dedent(description), self.width))
예제 #3
0
파일: base.py 프로젝트: CheeseL0ver/celery
 def format_description(self, description):
     return text.ensure_2lines(text.fill_paragraphs(
         text.dedent(description), self.width))
예제 #4
0
파일: base.py 프로젝트: jdufresne/celery
 def _format_description(self, description):
     width = argparse.HelpFormatter("prog")._width
     return text.ensure_newlines(text.fill_paragraphs(text.dedent(description), width))