From: Brian Warner Date: Thu, 1 Nov 2007 22:25:16 +0000 (-0700) Subject: trailing-whitespace eradication, no functional changes X-Git-Tag: allmydata-tahoe-0.7.0~323 X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/%22doc.html/architecture.txt?a=commitdiff_plain;h=5e974ede20b1bae404342e44776d828e7c8ebcca;p=tahoe-lafs%2Ftahoe-lafs.git trailing-whitespace eradication, no functional changes --- diff --git a/src/allmydata/util/iputil.py b/src/allmydata/util/iputil.py index d7f4de45..daecfeab 100644 --- a/src/allmydata/util/iputil.py +++ b/src/allmydata/util/iputil.py @@ -148,7 +148,7 @@ class SequentialTrier(object): def when_tried(self): return self.o.when_fired() - + # k: platform string as provided in the value of _platform_map # v: tuple of (path_to_tool, args, regex,) _tool_map = { @@ -161,7 +161,7 @@ _tool_map = { } def _find_addresses_via_config(): # originally by Greg Smith, hacked by Zooko to conform to Brian's API - + platform = _platform_map.get(sys.platform) if not platform: raise UnsupportedPlatformError(sys.platform) @@ -177,7 +177,7 @@ def _find_addresses_via_config(): return _query(pathtotool, args, regex) else: return SequentialTrier(pathtotool, args, regex).when_tried() - + def _query(path, args, regex): d = getProcessOutput(path, args) def _parse(output): @@ -189,7 +189,7 @@ def _query(path, args, regex): addr = m.groupdict()['address'] if addr not in addresses: addresses.append(addr) - + return addresses d.addCallback(_parse) return d