File: __init__.py

package info (click to toggle)
egenix-mx-base 3.2.8-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 8,420 kB
  • ctags: 6,208
  • sloc: ansic: 22,304; python: 18,124; sh: 137; makefile: 121
file content (22 lines) | stat: -rw-r--r-- 669 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
""" mxTextTools - A tools package for fast text processing.

    Copyright (c) 2000, Marc-Andre Lemburg; mailto:mal@lemburg.com
    Copyright (c) 2000-2014, eGenix.com Software GmbH; mailto:info@egenix.com
    See the documentation for further information on copyrights,
    or contact the author. All Rights Reserved.
"""
from mxTextTools import *
from mxTextTools import __version__

# To maintain backward compatibility:
BMS = TextSearch
BMSType = TextSearchType
try:
    TextSearch('',None,FASTSEARCH)
except:
    FS = BMS
    FSType = BMS
else:
    def FS(match, translate=None):
        return TextSearch(match, translate, FASTSEARCH)
    FSType = TextSearchType