diff -r d60678a567a9 -r 328739ea70c3 hgext/transplant.py --- a/hgext/transplant.py Tue Jun 23 22:38:21 2015 -0700 +++ b/hgext/transplant.py Tue Jun 23 22:20:08 2015 -0700 @@ -272,7 +272,7 @@ files = set() patch.patch(self.ui, repo, patchfile, files=files, eolmode=None) files = list(files) - except Exception, inst: + except Exception as inst: seriespath = os.path.join(self.path, 'series') if os.path.exists(seriespath): os.unlink(seriespath)