~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/__init__.py

  • Committer: Andrew Bennetts
  • Date: 2008-09-12 05:05:20 UTC
  • mto: This revision was merged to the branch mainline in revision 3756.
  • Revision ID: andrew.bennetts@canonical.com-20080912050520-b0iwmofetjwzqcfc
Comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""bzr library"""
18
18
 
19
 
#from bzrlib.osutils import get_user_encoding
20
19
import time
21
20
 
22
21
# Keep track of when bzrlib was first imported, so that we can give rough
25
24
 
26
25
import sys
27
26
if getattr(sys, '_bzr_lazy_regex', False):
 
27
    # The 'bzr' executable sets _bzr_lazy_regex.  We install the lazy regex
 
28
    # hack as soon as possible so that as much of the standard library can
 
29
    # benefit, including the 'string' module.
28
30
    del sys._bzr_lazy_regex
29
31
    import bzrlib.lazy_regex
30
32
    bzrlib.lazy_regex.install_lazy_compile()
32
34
IGNORE_FILENAME = ".bzrignore"
33
35
 
34
36
 
35
 
# XXX: Compatibility. This should probably be deprecated
36
 
#user_encoding = get_user_encoding()
37
 
 
38
 
 
39
37
__copyright__ = "Copyright 2005, 2006, 2007, 2008 Canonical Ltd."
40
38
 
41
39
# same format as sys.version_info: "A tuple containing the five components of