Should be able to just import mozhttpd

RESOLVED FIXED

Status

Testing
Mozbase
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: wlach, Assigned: wlach)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [mozbase])

Attachments

(1 attachment)

Currently mozhttpd lacks an __init__.py, so this does not work:

import mozhttpd

m = mozhttpd.MozHttpd()
m.start(block=True)
Assignee: nobody → wlachance

Updated

6 years ago
Whiteboard: [mozbase]
Created attachment 577697 [details] [diff] [review]
Bug 706208 - Should be able to just import mozhttpd
Attachment #577697 - Flags: review?(jhammel)

Comment 2

6 years ago
Comment on attachment 577697 [details] [diff] [review]
Bug 706208 - Should be able to just import mozhttpd

Please lose the shebang. There is nothing to be achieved from running this as a CLI script.  Other than that, looks fine.
Attachment #577697 - Flags: review?(jhammel) → review+
Pushed: https://github.com/mozilla/mozbase/commit/e803967dc669f53840befe1c2babc304a1c45da3
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.