diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-05-30 03:18:50 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-05-30 03:18:50 +0000 |
commit | 1e44ca94acc5e93ab21aacded7046ee5171c40cd (patch) | |
tree | 577420e0f99edf95f58c4f0ec126fac5b25f8141 | |
parent | f0d55aca5d1b43973b581e1867fd57cf8f9cb973 (diff) | |
download | cpython-git-1e44ca94acc5e93ab21aacded7046ee5171c40cd.tar.gz |
Simplify further by using AddStringConstant
-rw-r--r-- | Modules/socketmodule.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 5f7a520cf4..847a1948b8 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -4362,10 +4362,8 @@ init_socket(void) PyModule_AddIntConstant(m, "BTPROTO_SCO", BTPROTO_SCO); #endif PyModule_AddIntConstant(m, "BTPROTO_RFCOMM", BTPROTO_RFCOMM); - PyModule_AddObject(m, "BDADDR_ANY", - PyString_FromString("00:00:00:00:00:00")); - PyModule_AddObject(m, "BDADDR_LOCAL", - PyString_FromString("00:00:00:FF:FF:FF")); + PyModule_AddStringConstant(m, "BDADDR_ANY", "00:00:00:00:00:00"); + PyModule_AddStringConstant(m, "BDADDR_LOCAL", "00:00:00:FF:FF:FF"); #endif #ifdef HAVE_NETPACKET_PACKET_H |