# HG changeset patch # User Benoit Boissinot # Date 2010-08-15 09:05:04 # Node ID 4e804302d30cfb8de0b5f42be6b9cc3f61db7cfc # Parent 8bb1481cf08fc8c997522a24dd06585b7d2e1650 fix undefined variables, spotted by pylint diff --git a/mercurial/dagparser.py b/mercurial/dagparser.py --- a/mercurial/dagparser.py +++ b/mercurial/dagparser.py @@ -7,6 +7,7 @@ import re, string import util +from i18n import _ def parsedag(desc): '''parses a DAG from a concise textual description; generates events diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py --- a/mercurial/wireproto.py +++ b/mercurial/wireproto.py @@ -5,7 +5,7 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. -import urllib, tempfile, os +import urllib, tempfile, os, sys from i18n import _ from node import bin, hex import changegroup as changegroupmod @@ -36,7 +36,7 @@ class wirerepository(repo.repository): try: return decodelist(d[:-1]) except: - self.abort(error.ResponseError(_("unexpected response:"), d)) + self._abort(error.ResponseError(_("unexpected response:"), d)) def branchmap(self): d = self._call("branchmap")