Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
04706892
Kaydet (Commit)
04706892
authored
Eyl 01, 2007
tarafından
Collin Winter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Run 2to3's fix_has_key over Lib/plat-os2emx/.
üst
ba21f618
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
grp.py
Lib/plat-os2emx/grp.py
+5
-5
pwd.py
Lib/plat-os2emx/pwd.py
+6
-6
No files found.
Lib/plat-os2emx/grp.py
Dosyayı görüntüle @
04706892
...
...
@@ -58,11 +58,11 @@ import os
# try and find the group file
__group_path
=
[]
if
os
.
environ
.
has_key
(
'ETC_GROUP'
)
:
if
'ETC_GROUP'
in
os
.
environ
:
__group_path
.
append
(
os
.
environ
[
'ETC_GROUP'
])
if
os
.
environ
.
has_key
(
'ETC'
)
:
if
'ETC'
in
os
.
environ
:
__group_path
.
append
(
'
%
s/group'
%
os
.
environ
[
'ETC'
])
if
os
.
environ
.
has_key
(
'PYTHONHOME'
)
:
if
'PYTHONHOME'
in
os
.
environ
:
__group_path
.
append
(
'
%
s/Etc/group'
%
os
.
environ
[
'PYTHONHOME'
])
group_file
=
None
...
...
@@ -149,9 +149,9 @@ def __read_group_file():
fields
[
2
]
=
int
(
fields
[
2
])
fields
[
3
]
=
[
f
.
strip
()
for
f
in
fields
[
3
]
.
split
(
','
)]
record
=
Group
(
*
fields
)
if
not
gidx
.
has_key
(
fields
[
2
])
:
if
fields
[
2
]
not
in
gidx
:
gidx
[
fields
[
2
]]
=
record
if
not
namx
.
has_key
(
fields
[
0
])
:
if
fields
[
0
]
not
in
namx
:
namx
[
fields
[
0
]]
=
record
elif
len
(
entry
)
>
0
:
pass
# skip empty or malformed records
...
...
Lib/plat-os2emx/pwd.py
Dosyayı görüntüle @
04706892
...
...
@@ -61,11 +61,11 @@ import os
# try and find the passwd file
__passwd_path
=
[]
if
os
.
environ
.
has_key
(
'ETC_PASSWD'
)
:
if
'ETC_PASSWD'
in
os
.
environ
:
__passwd_path
.
append
(
os
.
environ
[
'ETC_PASSWD'
])
if
os
.
environ
.
has_key
(
'ETC'
)
:
if
'ETC'
in
os
.
environ
:
__passwd_path
.
append
(
'
%
s/passwd'
%
os
.
environ
[
'ETC'
])
if
os
.
environ
.
has_key
(
'PYTHONHOME'
)
:
if
'PYTHONHOME'
in
os
.
environ
:
__passwd_path
.
append
(
'
%
s/Etc/passwd'
%
os
.
environ
[
'PYTHONHOME'
])
passwd_file
=
None
...
...
@@ -164,7 +164,7 @@ def __read_passwd_file():
uidx
=
{}
namx
=
{}
sep
=
None
while
1
:
while
True
:
entry
=
passwd
.
readline
()
.
strip
()
if
len
(
entry
)
>
6
:
if
sep
==
None
:
...
...
@@ -175,9 +175,9 @@ def __read_passwd_file():
for
i
in
(
5
,
6
):
fields
[
i
]
=
__field_sep
[
sep
](
fields
[
i
])
record
=
Passwd
(
*
fields
)
if
not
uidx
.
has_key
(
fields
[
2
])
:
if
fields
[
2
]
not
in
uidx
:
uidx
[
fields
[
2
]]
=
record
if
not
namx
.
has_key
(
fields
[
0
])
:
if
fields
[
0
]
not
in
namx
:
namx
[
fields
[
0
]]
=
record
elif
len
(
entry
)
>
0
:
pass
# skip empty or malformed records
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment