Skip to content

Commit e00b686

Browse files
committed
More cleanup for release
1 parent 3b46886 commit e00b686

File tree

2 files changed

+0
-42
lines changed

2 files changed

+0
-42
lines changed

pygetdns_util.c

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -386,44 +386,6 @@ getdns_dict *
386386
}
387387

388388
/* XXX rewrite this so it's more general */
389-
<<<<<<< HEAD
390-
if ((str = PyDict_GetItemString(pydict, "tls_auth_name")) != NULL) {
391-
#if PY_MAJOR_VERSION >= 3
392-
tls_auth_name.data = (uint8_t *)strdup(PyBytes_AsString(PyUnicode_AsEncodedString(str, "ascii", NULL)));
393-
#else
394-
tls_auth_name.data = (uint8_t *)strdup(PyString_AsString(str));
395-
#endif
396-
tls_auth_name.size = (size_t)strlen((char *)tls_auth_name.data);
397-
getdns_dict_set_bindata(addr_dict, "tls_auth_name", &tls_auth_name);
398-
}
399-
if ((str = PyDict_GetItemString(pydict, "scope_id")) != NULL) {
400-
#if PY_MAJOR_VERSION >= 3
401-
scope_id.data = (uint8_t *)strdup(PyBytes_AsString(PyUnicode_AsEncodedString(str, "ascii", NULL)));
402-
#else
403-
scope_id.data = (uint8_t *)strdup(PyString_AsString(str));
404-
#endif
405-
scope_id.size = (size_t)strlen((char *)scope_id.data);
406-
getdns_dict_set_bindata(addr_dict, "scope_id", &scope_id);
407-
}
408-
if ((str = PyDict_GetItemString(pydict, "tls_port")) != NULL) {
409-
#if PY_MAJOR_VERSION >= 3
410-
if (!PyLong_Check(str)) {
411-
PyErr_SetString(getdns_error, GETDNS_RETURN_INVALID_PARAMETER_TEXT);
412-
return NULL;
413-
}
414-
tls_port = (uint32_t)PyLong_AsLong(str);
415-
getdns_dict_set_int(addr_dict, "tls_port", tls_port);
416-
#else
417-
if (!PyInt_Check(str)) {
418-
PyErr_SetString(getdns_error, GETDNS_RETURN_INVALID_PARAMETER_TEXT);
419-
return NULL;
420-
}
421-
tls_port = (uint32_t)PyInt_AsLong(str);
422-
getdns_dict_set_int(addr_dict, "tls_port", tls_port);
423-
#endif
424-
}
425-
=======
426-
>>>>>>> develop
427389

428390
/* dict members supported:
429391
* address_data

setup.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,7 @@
6161
)
6262

6363
setup(name='getdns',
64-
<<<<<<< HEAD
65-
version='0.5.0',
66-
=======
6764
version='0.6.0',
68-
>>>>>>> develop
6965
description='getdns Python bindings for getdns',
7066
long_description=long_description,
7167
license='BSD',

0 commit comments

Comments
 (0)