/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/util.py

  • Committer: Ubuntu One Auto Copilot
  • Author(s): Jelmer Vernooij
  • Date: 2023-02-02 11:08:17 UTC
  • mfrom: (545.2.1 lp:loggerhead)
  • Revision ID: otto-copilot@canonical.com-20230202110817-001db22jiwyhfrk3
Fix spelling errors in code

Merged from https://code.launchpad.net/~jelmer/loggerhead/codespell/+merge/436735

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
 
177
177
def hide_email(email):
178
178
    """
179
 
    try to obsure any email address in a bazaar committer's name.
 
179
    try to obscure any email address in a bazaar committer's name.
180
180
    """
181
181
    m = STANDARD_PATTERN.search(email)
182
182
    if m is not None:
258
258
    CSS is stupid. In some cases we need to replace an empty value with
259
259
    a non breaking space ( ). There has to be a better way of doing this.
260
260
 
261
 
    return: the same value recieved if not empty, and a ' ' if it is.
 
261
    return: the same value received if not empty, and a ' ' if it is.
262
262
    """
263
263
    if s is None:
264
264
        return ' '
562
562
    Soon to be deprecated.
563
563
 
564
564
 
565
 
    return a context map that may be overriden by specific values passed in,
 
565
    return a context map that may be overridden by specific values passed in,
566
566
    but only contains keys from the list of valid context keys.
567
567
 
568
568
    if 'clear' is set, only the 'remember' context value will be added, and