From: Chris Porter Date: Sat, 2 Jan 2010 16:55:02 +0000 (+0000) Subject: Fix many typos in dependency checking. X-Git-Url: https://jfr.im/git/irc/quakenet/qwebirc.git/commitdiff_plain/0d221e0f5d176dc8371963ffdeb42cd5988d84b2?hp=f5f8d5e0ccf9e58076e4cb24176170e58380c2bd Fix many typos in dependency checking. --- diff --git a/bin/dependencies_b.py b/bin/dependencies_b.py index d5b1619..bd41f20 100644 --- a/bin/dependencies_b.py +++ b/bin/dependencies_b.py @@ -76,8 +76,9 @@ def check_twisted(): except ImportError: fail("qwebirc requires twisted (at least 8.2.0), see http://twistedmatrix.com/") - twisted_fail = lambda x, y=None: fail("you don't seem to have twisted's %s module." % x, - "your distro is most likely modular, look for a twisted web package%s." % (" %s" % y if y else "",)) + def twisted_fail(x, y=None): + fail("you don't seem to have twisted's %s module." % x, + "your distro is most likely modular, look for a twisted %s package%s." % (x, " %s" % y if y else "",)) try: import twisted.names @@ -88,7 +89,6 @@ def check_twisted(): import twisted.mail except ImportError: twisted_fail("mail") - fail("you don't seem to have twisted's mail module, your distro is most likely modular, look for a twisted mail package.") try: import twisted.web @@ -98,7 +98,7 @@ def check_twisted(): try: import twisted.words except ImportError: - twistedfail("words") + twisted_fail("words") if __name__ == "__main__": import dependencies