From: Zac Medico Date: Thu, 5 Apr 2007 22:27:54 +0000 (-0000) Subject: Provide a default value to the getattr call. X-Git-Tag: v2.2_pre1~1510 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=37658c36857d8e1483a0efe7487e6621d9fd5095;p=portage.git Provide a default value to the getattr call. svn path=/main/trunk/; revision=6344 --- diff --git a/pym/portage/data.py b/pym/portage/data.py index 69763aedd..a51990303 100644 --- a/pym/portage/data.py +++ b/pym/portage/data.py @@ -15,7 +15,7 @@ bad = create_color_func("BAD") ostype=os.uname()[0] userland = None -lchown = getattr(os, "lchown") +lchown = getattr(os, "lchown", None) os.environ.setdefault("XARGS", "xargs") if ostype=="Linux" or ostype.lower().endswith("gnu"): userland="GNU"