Simplify further by using AddStringConstant

This commit is contained in:
Neal Norwitz 2006-05-30 03:18:50 +00:00
parent f0d55aca5d
commit 1e44ca94ac
1 changed files with 2 additions and 4 deletions

View File

@ -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