From: Zac Medico Date: Sat, 29 Dec 2007 11:49:38 +0000 (-0000) Subject: Remove redundant lchown() compatibility code since the X-Git-Tag: v2.2_pre1~92 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=06ad5480e0680d5c0c9c23659266d95838953e80;p=portage.git Remove redundant lchown() compatibility code since the getattr(os, "lchown", None) call already handles it. svn path=/main/trunk/; revision=9099 --- diff --git a/pym/portage/data.py b/pym/portage/data.py index d50a6752a..8b89f2e4f 100644 --- a/pym/portage/data.py +++ b/pym/portage/data.py @@ -20,16 +20,10 @@ if ostype == "Linux" or \ userland="GNU" elif ostype == "Darwin": userland="Darwin" - def lchown(*pos_args, **key_args): - pass elif ostype.endswith("BSD") or ostype =="DragonFly": userland="BSD" if not lchown: - if "lchown" in dir(os): - # Included in python-2.3 - lchown = os.lchown - else: try: import missingos lchown = missingos.lchown