From c24a1bbaaab6b6ba8f998bff242222dd153a1ebe Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@allmydata.com>
Date: Mon, 14 Jan 2008 18:27:43 -0700
Subject: [PATCH] iputil.py: hush the new (more strict) pyflakes

---
 src/allmydata/util/iputil.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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'):
     """
-- 
2.45.2