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
03031fbc
Kaydet (Commit)
03031fbc
authored
Ara 07, 2017
tarafından
Miss Islington (bot)
Kaydeden (comit)
xdegaye
Ara 07, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-32199: The getnode() ip getter now uses 'ip link' instead of 'ip link list' (GH-4696) (#4747)
(cherry picked from commit
961dbe05
)
üst
8676ac54
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
uuid.py
Lib/uuid.py
+1
-1
2017-12-04-12-23-26.bpo-32199.nGof4v.rst
...S.d/next/Library/2017-12-04-12-23-26.bpo-32199.nGof4v.rst
+1
-0
No files found.
Lib/uuid.py
Dosyayı görüntüle @
03031fbc
...
@@ -358,7 +358,7 @@ def _ifconfig_getnode():
...
@@ -358,7 +358,7 @@ def _ifconfig_getnode():
def
_ip_getnode
():
def
_ip_getnode
():
"""Get the hardware address on Unix by running ip."""
"""Get the hardware address on Unix by running ip."""
# This works on Linux with iproute2.
# This works on Linux with iproute2.
mac
=
_find_mac
(
'ip'
,
'link
list
'
,
[
b
'link/ether'
],
lambda
i
:
i
+
1
)
mac
=
_find_mac
(
'ip'
,
'link'
,
[
b
'link/ether'
],
lambda
i
:
i
+
1
)
if
mac
:
if
mac
:
return
mac
return
mac
...
...
Misc/NEWS.d/next/Library/2017-12-04-12-23-26.bpo-32199.nGof4v.rst
0 → 100644
Dosyayı görüntüle @
03031fbc
The getnode() ip getter now uses 'ip link' instead of 'ip link list'.
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