~ubuntu-branches/ubuntu/precise/moin/precise-updates

« back to all changes in this revision

Viewing changes to MoinMoin/support/pygments/lexers/__init__.py

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum
  • Date: 2010-08-11 12:35:34 UTC
  • mfrom: (0.1.19 sid)
  • Revision ID: james.westby@ubuntu.com-20100811123534-q8zu7qrwqul6cvec
Tags: 1.9.3-1ubuntu1
* Merge from Debian unstable (LP: #586518). Based on work by Stefan Ebner.
  Remaining changes:
 - Remove python-xml from Suggests field, the package isn't anymore in
   sys.path.
 - Demote fckeditor from Recommends to Suggests; the code was previously
   embedded in moin, but it was also disabled, so there's no reason 
   for us to pull this in by default currently. Note: fckeditor has a
   number of security problems and so this change probably needs to be
   carried indefinitely.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
    :copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS.
9
9
    :license: BSD, see LICENSE for details.
10
10
"""
 
11
 
11
12
import sys
 
13
import types
12
14
import fnmatch
13
 
import types
14
15
from os.path import basename
15
16
 
16
 
try:
17
 
    set
18
 
except NameError:
19
 
    from sets import Set as set
20
 
 
21
17
from pygments.lexers._mapping import LEXERS
22
18
from pygments.plugin import find_plugin_lexers
23
19
from pygments.util import ClassNotFound, bytes
223
219
        raise AttributeError(name)
224
220
 
225
221
 
226
 
import sys
227
222
oldmod = sys.modules['pygments.lexers']
228
223
newmod = _automodule('pygments.lexers')
229
224
newmod.__dict__.update(oldmod.__dict__)