While working on #255 (use httplib symbolic response codes instead of
numeric ones for pkg), it occurred to me that there may be a preferred
approach to module imports in the pkg code.

Specifically, I'm assuming you just the standard "import X" instead of
"from X import Y" to avoid namespace pollution?

As such, wherever a numeric response code is currently being used, such as:

request.send_response(200);

it would become:

request.send_response(httplib.OK);

Correct?

Cheers,
-- 
Shawn Walker, Software and Systems Analyst
http://binarycrusader.blogspot.com/

"To err is human -- and to blame it on a computer is even more so." -
Robert Orben
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to