Linux worldls-302.fr.planethoster.net 4.18.0-553.8.1.lve.el7h.x86_64 #1 SMP Thu Jul 4 15:19:33 UTC 2024 x86_64
LiteSpeed
Server IP : 10.185.0.203 & Your IP : 216.73.216.32
Domains :
Cant Read [ /etc/named.conf ]
User : gerathty
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python2.7 /
site-packages /
pygments /
Delete
Unzip
Name
Size
Permission
Date
Action
filters
[ DIR ]
drwxr-xr-x
2017-04-04 16:39
formatters
[ DIR ]
drwxr-xr-x
2017-04-04 16:39
lexers
[ DIR ]
drwxr-xr-x
2017-04-04 16:39
styles
[ DIR ]
drwxr-xr-x
2017-04-04 16:39
__init__.py
3.04
KB
-rw-r--r--
2015-01-20 07:56
__init__.pyc
3.42
KB
-rw-r--r--
2016-08-02 10:51
__init__.pyo
3.42
KB
-rw-r--r--
2016-08-02 10:51
cmdline.py
16.26
KB
-rw-r--r--
2015-01-20 07:56
cmdline.pyc
12.55
KB
-rw-r--r--
2016-08-02 10:51
cmdline.pyo
12.55
KB
-rw-r--r--
2016-08-02 10:51
console.py
1.81
KB
-rw-r--r--
2014-11-10 20:17
console.pyc
2.27
KB
-rw-r--r--
2016-08-02 10:51
console.pyo
2.27
KB
-rw-r--r--
2016-08-02 10:51
filter.py
2.02
KB
-rw-r--r--
2014-11-10 20:17
filter.pyc
3.1
KB
-rw-r--r--
2016-08-02 10:51
filter.pyo
3.1
KB
-rw-r--r--
2016-08-02 10:51
formatter.py
2.88
KB
-rw-r--r--
2014-11-10 20:17
formatter.pyc
3.35
KB
-rw-r--r--
2016-08-02 10:51
formatter.pyo
3.35
KB
-rw-r--r--
2016-08-02 10:51
lexer.py
30.12
KB
-rw-r--r--
2014-11-10 20:17
lexer.pyc
28.34
KB
-rw-r--r--
2016-08-02 10:51
lexer.pyo
27.58
KB
-rw-r--r--
2016-08-02 10:51
modeline.py
958
B
-rw-r--r--
2014-11-10 20:17
modeline.pyc
1.3
KB
-rw-r--r--
2016-08-02 10:51
modeline.pyo
1.3
KB
-rw-r--r--
2016-08-02 10:51
plugin.py
1.82
KB
-rw-r--r--
2014-11-10 20:17
plugin.pyc
2.3
KB
-rw-r--r--
2016-08-02 10:51
plugin.pyo
2.3
KB
-rw-r--r--
2016-08-02 10:51
regexopt.py
3
KB
-rw-r--r--
2014-11-10 20:17
regexopt.pyc
3.14
KB
-rw-r--r--
2016-08-02 10:51
regexopt.pyo
3.14
KB
-rw-r--r--
2016-08-02 10:51
scanner.py
3.04
KB
-rw-r--r--
2014-11-10 20:17
scanner.pyc
4.07
KB
-rw-r--r--
2016-08-02 10:51
scanner.pyo
4.07
KB
-rw-r--r--
2016-08-02 10:51
sphinxext.py
4.43
KB
-rw-r--r--
2015-01-20 07:56
sphinxext.pyc
5.39
KB
-rw-r--r--
2016-08-02 10:51
sphinxext.pyo
5.39
KB
-rw-r--r--
2016-08-02 10:51
style.py
3.69
KB
-rw-r--r--
2014-11-10 20:17
style.pyc
3.83
KB
-rw-r--r--
2016-08-02 10:51
style.pyo
3.76
KB
-rw-r--r--
2016-08-02 10:51
token.py
5.64
KB
-rw-r--r--
2014-11-10 20:17
token.pyc
5.04
KB
-rw-r--r--
2016-08-02 10:51
token.pyo
5.04
KB
-rw-r--r--
2016-08-02 10:51
unistring.py
49.95
KB
-rw-r--r--
2014-11-10 20:17
unistring.pyc
26.58
KB
-rw-r--r--
2016-08-02 10:51
unistring.pyo
26.58
KB
-rw-r--r--
2016-08-02 10:51
util.py
11.51
KB
-rw-r--r--
2015-01-20 07:56
util.pyc
12.59
KB
-rw-r--r--
2016-08-02 10:51
util.pyo
12.59
KB
-rw-r--r--
2016-08-02 10:51
Save
Rename
# -*- coding: utf-8 -*- """ pygments.filter ~~~~~~~~~~~~~~~ Module that implements the default filter. :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ def apply_filters(stream, filters, lexer=None): """ Use this method to apply an iterable of filters to a stream. If lexer is given it's forwarded to the filter, otherwise the filter receives `None`. """ def _apply(filter_, stream): for token in filter_.filter(lexer, stream): yield token for filter_ in filters: stream = _apply(filter_, stream) return stream def simplefilter(f): """ Decorator that converts a function into a filter:: @simplefilter def lowercase(lexer, stream, options): for ttype, value in stream: yield ttype, value.lower() """ return type(f.__name__, (FunctionFilter,), { 'function': f, '__module__': getattr(f, '__module__'), '__doc__': f.__doc__ }) class Filter(object): """ Default filter. Subclass this class or use the `simplefilter` decorator to create own filters. """ def __init__(self, **options): self.options = options def filter(self, lexer, stream): raise NotImplementedError() class FunctionFilter(Filter): """ Abstract class used by `simplefilter` to create simple function filters on the fly. The `simplefilter` decorator automatically creates subclasses of this class for functions passed to it. """ function = None def __init__(self, **options): if not hasattr(self, 'function'): raise TypeError('%r used without bound function' % self.__class__.__name__) Filter.__init__(self, **options) def filter(self, lexer, stream): # pylint: disable-msg=E1102 for ttype, value in self.function(lexer, stream, self.options): yield ttype, value