Mercurial > hg > buttercup
diff buttercup/source.py @ 52:b717de8b384f
py3
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Tue, 03 Nov 2020 07:51:52 -0800 |
parents | 048e391423a1 |
children |
line wrap: on
line diff
--- a/buttercup/source.py Tue Nov 03 07:33:01 2020 -0800 +++ b/buttercup/source.py Tue Nov 03 07:51:52 2020 -0800 @@ -3,10 +3,8 @@ """ import os -try: - from subprocess import check_call as call -except ImportError: - from subprocess import call +from subprocess import check_call as call + class Source(object): """abstract base class for VCS source""" @@ -42,7 +40,7 @@ call(['hg', 'pull'], cwd=self.directory()) call(['hg', 'update'], cwd=self.directory()) except: - print 'Directory: %s' % self.directory() + print('Directory: %s' % self.directory()) raise else: if not os.path.exists(self.srcdir):