From 06ad5480e0680d5c0c9c23659266d95838953e80 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 29 Dec 2007 11:49:38 +0000 Subject: [PATCH] Remove redundant lchown() compatibility code since the getattr(os, "lchown", None) call already handles it. svn path=/main/trunk/; revision=9099 --- pym/portage/data.py | 6 ------ 1 file changed, 6 deletions(-) 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 -- 2.26.2