~ubuntu-branches/ubuntu/hardy/moin/hardy-updates

« back to all changes in this revision

Viewing changes to MoinMoin/wikiutil.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-12-06 17:44:41 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071206174441-20bxkrbqdglgh4l7
Tags: 1.5.8-5ubuntu1
* Merge with Debian; remaining changes:
  - Suggest python-xml (needed for DocBook rendering). LP: #31728.

Show diffs side-by-side

added added

removed removed

Lines of Context:
256
256
    control_chars = u'\x00\x01\x02\x03\x04\x05\x06\x07\x08\x0b\x0c\x0e\x0f' \
257
257
                    '\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f'
258
258
    for c in control_chars:
259
 
        remap_chars[c] = None
 
259
        remap_chars[ord(c)] = None
260
260
    comment = comment.translate(remap_chars)
261
261
    return comment
262
262