[tahoe-dev] tahoe still dumps core
Pierre Abbat
phma at bezitopo.org
Mon May 27 22:06:35 UTC 2013
On Monday, May 27, 2013 17:37:07 Zooko O'Whielacronx wrote:
> diff --git a/src/allmydata/util/iputil.py b/src/allmydata/util/iputil.py
> index 85b3b1d..cb3e7c0 100644
> --- a/src/allmydata/util/iputil.py
> +++ b/src/allmydata/util/iputil.py
> @@ -161,6 +161,7 @@ _platform_map = {
> "netbsd4": "bsd",
> "netbsd5": "bsd",
> "netbsd6": "bsd",
> + "dragonfly2": "bsd",
> "sunos5": "sunos",
> "cygwin": "cygwin",
> }
What about "dragonfly3"? That's what it looked for on my box and couldn't find.
http://docs.python.org/2/library/sys.html recommends using "startswith",
rather than checking every possible value. If you check only for dragonfly2 and
dragonfly3, the program will fail when dragonfly4 comes out.
Pierre
--
loi mintu se ckaji danlu cu jmaji
More information about the tahoe-dev
mailing list