Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some code examples still use "t." #189

Open
MarkDavidson opened this issue May 7, 2015 · 2 comments
Open

Some code examples still use "t." #189

MarkDavidson opened this issue May 7, 2015 · 2 comments

Comments

@MarkDavidson
Copy link
Contributor

libtaxii used to store constants in libtaxii, which were often used as such:

import libtaxii as t
binding = t.CB_STIX_XML_111

However, these constants are now in libtaxii.constants, and this is the correct idiom:

from libtaxii.constants import *
binding = CB_STIX_XML_111

The examples need to be combed through and updated to reflect the new idiom.

@stkyle
Copy link
Contributor

stkyle commented May 13, 2015

@MarkDavidson
What are your thoughts on the constants used in taxii_default_query (and commonly references as tdq.*)?

@MarkDavidson
Copy link
Contributor Author

@stkyle,

The constants for taxii_default_query are also in libtaxii.constants and the documentation should be updated accordingly. Nice find!

-Mark

Aside: All constants have references from their original locations to preserve backward compatibility, but the new locations should be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants