projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35264c0
)
Remove redundant lchown() compatibility code since the
author
Zac Medico
<zmedico@gentoo.org>
Sat, 29 Dec 2007 11:49:38 +0000
(11:49 -0000)
committer
Zac 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
patch
|
blob
|
history
diff --git
a/pym/portage/data.py
b/pym/portage/data.py
index d50a6752a7a6c7555bf83b277c1bfb05a198464c..8b89f2e4fb24dda53ab52f99e30ba98368946bed 100644
(file)
--- 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