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
abfeff7f
Kaydet (Commit)
abfeff7f
authored
Tem 28, 2000
tarafından
Mark Hammond
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix a type in the docstrings, and make the module Unicode aware.
üst
c64c8ea7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
winreg.py
Lib/plat-win/winreg.py
+8
-4
No files found.
Lib/plat-win/winreg.py
Dosyayı görüntüle @
abfeff7f
...
...
@@ -15,7 +15,7 @@ deleteKey( keyname )
delete a key if it exists
Note: deleteKey may not be recursive on all platforms.
>>> key=
crea
teKey( r"HKLM
\
SOFTWARE
\
Python
\
Test" )
>>> key=
dele
teKey( r"HKLM
\
SOFTWARE
\
Python
\
Test" )
RemoteKey( machine, top_level_key ):
open a key on another machine.
...
...
@@ -139,7 +139,7 @@ def _getName( item, nameFromNum ):
except
(
WindowsError
,
EnvironmentError
):
raise
IndexError
,
item
elif
type
(
item
)
==
StringType
:
elif
type
(
item
)
in
[
StringType
,
UnicodeType
]
:
keyname
=
item
else
:
raise
exceptions
.
TypeError
,
\
...
...
@@ -300,13 +300,17 @@ class RegKey:
if
regtype
:
typeint
=
regtype
.
intval
else
:
if
type
(
data
)
==
StringType
:
if
type
(
data
)
in
[
StringType
,
UnicodeType
]
:
typeint
=
_winreg
.
REG_SZ
elif
type
(
data
)
==
ListType
:
# XXX - _winreg currently only supports lists
# Also, probably should check each element is
# string/unicode.
typeint
=
_winreg
.
REG_MULTI_SZ
elif
type
(
data
)
==
IntType
:
typeint
=
_winreg
.
REG_DWORD
elif
type
(
data
)
==
array
.
ArrayType
:
typeint
=
_winreg
.
REG_BINARY
data
=
data
.
tostring
()
_winreg
.
SetValueEx
(
self
.
handle
,
valname
,
0
,
typeint
,
data
)
def
flush
(
self
):
...
...
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