~ubuntu-branches/ubuntu/natty/bzr/natty

« back to all changes in this revision

Viewing changes to bzr

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2010-10-11 02:21:33 UTC
  • mfrom: (1.4.9 upstream) (9.2.5 experimental)
  • Revision ID: james.westby@ubuntu.com-20101011022133-smjfrb0gdlrgpra2
Tags: 2.3.0~beta2-1
* New upstream release.
* Rebuild with python2.5 modules. Closes: #593409

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
import warnings
24
24
 
25
25
# update this on each release
26
 
_script_version = (2, 2, 0)
 
26
_script_version = (2, 3, 0)
27
27
 
28
28
try:
29
29
    version_info = sys.version_info
75
75
else:
76
76
    import locale
77
77
 
 
78
if os.name == "posix":
 
79
    try:
 
80
        locale.setlocale(locale.LC_ALL, '')
 
81
    except locale.Error, e:
 
82
        sys.stderr.write('bzr: warning: %s\n'
 
83
            '  bzr could not set the application locale.\n'
 
84
            '  Although this should be no problem for bzr itself, it might\n'
 
85
            '  cause problems with some plugins. To investigate the issue,\n'
 
86
            '  look at the output of the locale(1p) tool.\n' % e)
 
87
 
78
88
 
79
89
# The python2.6 release includes some libraries that have deprecation warnings
80
90
# against the interpreter - see https://bugs.launchpad.net/bzr/+bug/387139
86
96
    )
87
97
 
88
98
 
89
 
try:
90
 
    locale.setlocale(locale.LC_ALL, '')
91
 
except locale.Error, e:
92
 
    sys.stderr.write('bzr: warning: %s\n'
93
 
                     '  bzr could not set the application locale.\n'
94
 
                     '  Although this should be no problem for bzr itself,\n'
95
 
                     '  it might cause problems with some plugins.\n'
96
 
                     '  To investigate the issue, look at the output\n'
97
 
                     '  of the locale(1p) tool available on POSIX systems.\n'
98
 
                     % e)
99
 
 
100
99
# instruct bzrlib/__init__.py to install lazy_regex
101
100
sys._bzr_lazy_regex = True
102
101
try: