Mercurial > public > mercurial-scm > hg-stable
diff mercurial/util.py @ 4533:36abb07c79d4
Removed trailing \n in calls to util.Abort()
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sat, 09 Jun 2007 13:25:54 +0200 |
parents | 96d8a56d4ef9 |
children | 133a52d70958 |
line wrap: on
line diff
--- a/mercurial/util.py Sat Jun 09 13:17:58 2007 +0200 +++ b/mercurial/util.py Sat Jun 09 13:25:54 2007 +0200 @@ -77,7 +77,7 @@ return u.encode(_encoding, _encodingmode) except UnicodeDecodeError, inst: sub = s[max(0, inst.start-10), inst.start+10] - raise Abort(_("decoding near '%s': %s!\n") % (sub, inst)) + raise Abort(_("decoding near '%s': %s!") % (sub, inst)) # used by parsedate defaultdateformats = ( @@ -650,7 +650,7 @@ parts = os.path.normcase(path).split(os.sep) if (os.path.splitdrive(path)[0] or parts[0] in ('.hg', '') or os.pardir in parts): - raise Abort(_("path contains illegal component: %s\n") % path) + raise Abort(_("path contains illegal component: %s") % path) def _makelock_file(info, pathname): ld = os.open(pathname, os.O_CREAT | os.O_WRONLY | os.O_EXCL)