equal
deleted
inserted
replaced
29 return matchoutput('baz --version 2>&1', r'baz Bazaar version') |
29 return matchoutput('baz --version 2>&1', r'baz Bazaar version') |
30 |
30 |
31 def has_bzr(): |
31 def has_bzr(): |
32 try: |
32 try: |
33 import bzrlib |
33 import bzrlib |
34 return bzrlib.__doc__ != None |
34 return bzrlib.__doc__ is not None |
35 except ImportError: |
35 except ImportError: |
36 return False |
36 return False |
37 |
37 |
38 def has_bzr114(): |
38 def has_bzr114(): |
39 try: |
39 try: |
40 import bzrlib |
40 import bzrlib |
41 return (bzrlib.__doc__ != None |
41 return (bzrlib.__doc__ is not None |
42 and bzrlib.version_info[:2] >= (1, 14)) |
42 and bzrlib.version_info[:2] >= (1, 14)) |
43 except ImportError: |
43 except ImportError: |
44 return False |
44 return False |
45 |
45 |
46 def has_cvs(): |
46 def has_cvs(): |