]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
iputil.py: hush the new (more strict) pyflakes
authorBrian Warner <warner@allmydata.com>
Tue, 15 Jan 2008 01:27:43 +0000 (18:27 -0700)
committerBrian Warner <warner@allmydata.com>
Tue, 15 Jan 2008 01:27:43 +0000 (18:27 -0700)
src/allmydata/util/iputil.py

index f5e245d060cd9c58b32a52b924c1ba10c3569fe8..203f172d10d012e2087ff8f36752231b67542aff 100644 (file)
@@ -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'):
     """