Show More
@@ -29,7 +29,8 b' except ImportError:' | |||||
29 | stdout = getattr(sys.stdout, 'buffer', sys.stdout) |
|
29 | stdout = getattr(sys.stdout, 'buffer', sys.stdout) | |
30 | stderr = getattr(sys.stderr, 'buffer', sys.stderr) |
|
30 | stderr = getattr(sys.stderr, 'buffer', sys.stderr) | |
31 |
|
31 | |||
32 |
i |
|
32 | is_not_python2 = sys.version_info[0] >= 3 | |
|
33 | if is_not_python2: | |||
33 |
|
34 | |||
34 | def _sys2bytes(p): |
|
35 | def _sys2bytes(p): | |
35 | if p is None: |
|
36 | if p is None: | |
@@ -169,6 +170,8 b' def has_baz():' | |||||
169 |
|
170 | |||
170 | @check("bzr", "Canonical's Bazaar client") |
|
171 | @check("bzr", "Canonical's Bazaar client") | |
171 | def has_bzr(): |
|
172 | def has_bzr(): | |
|
173 | if not is_not_python2: | |||
|
174 | return False | |||
172 | try: |
|
175 | try: | |
173 | import bzrlib |
|
176 | import bzrlib | |
174 | import bzrlib.bzrdir |
|
177 | import bzrlib.bzrdir |
General Comments 0
You need to be logged in to leave comments.
Login now