summaryrefslogtreecommitdiff
path: root/netifaces.c
diff options
context:
space:
mode:
Diffstat (limited to 'netifaces.c')
-rw-r--r--netifaces.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/netifaces.c b/netifaces.c
index fefbf9d..bf18c80 100644
--- a/netifaces.c
+++ b/netifaces.c
@@ -1567,7 +1567,7 @@ gateways (PyObject *self)
break;
}
- ifname = PyUnicode_FromUnicode (pwcsName, wcslen (pwcsName));
+ ifname = PyUnicode_FromWideChar (pwcsName, wcslen (pwcsName));
isdefault = bBest ? Py_True : Py_False;
tuple = PyTuple_Pack (3, gateway, ifname, isdefault);
@@ -1674,7 +1674,7 @@ gateways (PyObject *self)
if (bBest)
dwBestMetric = table->table[n].dwForwardMetric1;
- ifname = PyUnicode_FromUnicode (pwcsName, wcslen (pwcsName));
+ ifname = PyUnicode_FromWideChar (pwcsName, wcslen (pwcsName));
gateway = PyUnicode_FromString (gwbuf);
isdefault = bBest ? Py_True : Py_False;