<s> from __future__ import absolute_import <EOL> import re <EOL> import salt . ext . six as six <EOL> def strip_rst ( docs ) : <EOL> '''<STR_LIT>''' <EOL> for func , docstring in six . iteritems ( docs ) : <EOL> if not docstring : <EOL> continue <EOL> docstring_new = re . sub ( r'<STR_LIT>' , <EOL> '<STR_LIT>' , docstring ) <EOL> docstring_new = re . sub ( '<STR_LIT>' , <EOL> '<STR_LIT>' , docstring_new ) <EOL> docstring_new = re . sub ( '<STR_LIT>' , <EOL> '<STR_LIT>' , docstring_new ) <EOL> docstring_new = re . sub ( '<STR_LIT>' , <EOL> '<STR_LIT>' , docstring_new ) <EOL> docstring_new = re . sub ( '<STR_LIT>' , <EOL> '<STR_LIT>' , docstring_new ) <EOL> if docstring != docstring_new : <EOL> docs [ func ] = docstring_new <EOL> return docs </s>
