Remove redundant lchown() compatibility code since the
authorZac Medico <zmedico@gentoo.org>
Sat, 29 Dec 2007 11:49:38 +0000 (11:49 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 29 Dec 2007 11:49:38 +0000 (11:49 -0000)
getattr(os, "lchown", None) call already handles it.

svn path=/main/trunk/; revision=9099

pym/portage/data.py

index d50a6752a7a6c7555bf83b277c1bfb05a198464c..8b89f2e4fb24dda53ab52f99e30ba98368946bed 100644 (file)
@@ -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