keystone  18.0.0
About: OpenStack Keystone (Core Service: Identity) provides an authentication and authorization service for other OpenStack services. Provides a catalog of endpoints for all OpenStack services.
The "Victoria" series (maintained release).
  Fossies Dox: keystone-18.0.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

utils.py
Go to the documentation of this file.
1 # Licensed under the Apache License, Version 2.0 (the "License"); you may
2 # not use this file except in compliance with the License. You may obtain
3 # a copy of the License at
4 #
5 # http://www.apache.org/licenses/LICENSE-2.0
6 #
7 # Unless required by applicable law or agreed to in writing, software
8 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 # License for the specific language governing permissions and limitations
11 # under the License.
12 
13 
14 def fmt(docstr):
15  """Format a docstring for use as documentation in sample config."""
16  # Replace newlines with spaces, as docstrings contain literal newlines that
17  # should not be rendered into the sample configuration file (instead, line
18  # wrappings should be applied automatically).
19  docstr = docstr.replace('\n', ' ')
20 
21  # Because it's common for docstrings to begin and end with a newline, there
22  # is now whitespace at the beginning and end of the documentation as a side
23  # effect of replacing newlines with spaces.
24  docstr = docstr.strip()
25 
26  return docstr
keystone.conf.utils.fmt
def fmt(docstr)
Definition: utils.py:14