From: Brian Warner Date: Tue, 15 Jan 2008 01:27:43 +0000 (-0700) Subject: iputil.py: hush the new (more strict) pyflakes X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=c24a1bbaaab6b6ba8f998bff242222dd153a1ebe;p=tahoe-lafs%2Ftahoe-lafs.git iputil.py: hush the new (more strict) pyflakes --- diff --git a/src/allmydata/util/iputil.py b/src/allmydata/util/iputil.py index f5e245d0..203f172d 100644 --- a/src/allmydata/util/iputil.py +++ b/src/allmydata/util/iputil.py @@ -68,11 +68,15 @@ try: # who knows what. It isn't very important, so log it and continue log.err() except ImportError: - def increase_rlimits(): + def _increase_rlimits(): # TODO: implement this for Windows. Although I suspect the # solution might be "be running under the iocp reactor and # make this function be a no-op". pass + # pyflakes complains about two 'def FOO' statements in the same time, + # since one might be shadowing the other. This hack appeases pyflakes. + increase_rlimits = _increase_rlimits + def get_local_addresses_async(target='A.ROOT-SERVERS.NET'): """