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
b24cd0f0
Kaydet (Commit)
b24cd0f0
authored
Haz 12, 2007
tarafından
Marc-André Lemburg
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add patch #1726668: Windows Vista support.
üst
0e09788e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
platform.py
Lib/platform.py
+20
-0
No files found.
Lib/platform.py
Dosyayı görüntüle @
b24cd0f0
...
@@ -600,6 +600,16 @@ def win32_ver(release='',version='',csd='',ptype=''):
...
@@ -600,6 +600,16 @@ def win32_ver(release='',version='',csd='',ptype=''):
release
=
'2003Server'
release
=
'2003Server'
else
:
else
:
release
=
'post2003'
release
=
'post2003'
elif
maj
==
6
:
if
min
==
0
:
# Per http://msdn2.microsoft.com/en-us/library/ms724429.aspx
productType
=
GetVersionEx
(
1
)[
8
]
if
productType
==
1
:
# VER_NT_WORKSTATION
release
=
'Vista'
else
:
release
=
'2008Server'
else
:
release
=
'post2008Server'
else
:
else
:
if
not
release
:
if
not
release
:
# E.g. Win3.1 with win32s
# E.g. Win3.1 with win32s
...
@@ -1068,6 +1078,16 @@ def uname():
...
@@ -1068,6 +1078,16 @@ def uname():
# (_syscmd_ver() tends to return the vendor name as well)
# (_syscmd_ver() tends to return the vendor name as well)
if
system
==
'Microsoft Windows'
:
if
system
==
'Microsoft Windows'
:
system
=
'Windows'
system
=
'Windows'
elif
system
==
'Microsoft'
and
release
==
'Windows'
:
# Under Windows Vista and Windows Server 2008,
# Microsoft changed the output of the ver command. The
# release is no longer printed. This causes the
# system and release to be misidentified.
system
=
'Windows'
if
'6.0'
==
version
[:
3
]:
release
=
'Vista'
else
:
release
=
''
# In case we still don't know anything useful, we'll try to
# In case we still don't know anything useful, we'll try to
# help ourselves
# help ourselves
...
...
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