Skip to content

Commit

Permalink
More cleanup for release
Browse files Browse the repository at this point in the history
  • Loading branch information
MelindaShore committed Jan 25, 2016
1 parent 3b46886 commit e00b686
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 42 deletions.
38 changes: 0 additions & 38 deletions pygetdns_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,44 +386,6 @@ getdns_dict *
}

/* XXX rewrite this so it's more general */
<<<<<<< HEAD
if ((str = PyDict_GetItemString(pydict, "tls_auth_name")) != NULL) {
#if PY_MAJOR_VERSION >= 3
tls_auth_name.data = (uint8_t *)strdup(PyBytes_AsString(PyUnicode_AsEncodedString(str, "ascii", NULL)));
#else
tls_auth_name.data = (uint8_t *)strdup(PyString_AsString(str));
#endif
tls_auth_name.size = (size_t)strlen((char *)tls_auth_name.data);
getdns_dict_set_bindata(addr_dict, "tls_auth_name", &tls_auth_name);
}
if ((str = PyDict_GetItemString(pydict, "scope_id")) != NULL) {
#if PY_MAJOR_VERSION >= 3
scope_id.data = (uint8_t *)strdup(PyBytes_AsString(PyUnicode_AsEncodedString(str, "ascii", NULL)));
#else
scope_id.data = (uint8_t *)strdup(PyString_AsString(str));
#endif
scope_id.size = (size_t)strlen((char *)scope_id.data);
getdns_dict_set_bindata(addr_dict, "scope_id", &scope_id);
}
if ((str = PyDict_GetItemString(pydict, "tls_port")) != NULL) {
#if PY_MAJOR_VERSION >= 3
if (!PyLong_Check(str)) {
PyErr_SetString(getdns_error, GETDNS_RETURN_INVALID_PARAMETER_TEXT);
return NULL;
}
tls_port = (uint32_t)PyLong_AsLong(str);
getdns_dict_set_int(addr_dict, "tls_port", tls_port);
#else
if (!PyInt_Check(str)) {
PyErr_SetString(getdns_error, GETDNS_RETURN_INVALID_PARAMETER_TEXT);
return NULL;
}
tls_port = (uint32_t)PyInt_AsLong(str);
getdns_dict_set_int(addr_dict, "tls_port", tls_port);
#endif
}
=======
>>>>>>> develop

/* dict members supported:
* address_data
Expand Down
4 changes: 0 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,7 @@
)

setup(name='getdns',
<<<<<<< HEAD
version='0.5.0',
=======
version='0.6.0',
>>>>>>> develop
description='getdns Python bindings for getdns',
long_description=long_description,
license='BSD',
Expand Down

0 comments on commit e00b686

Please sign in to comment.