I'm guessing you get notified on the pull requests.  I think I have  my 
repository back in sync and the pull request should only touch wee_debug.  
Tested on Fedora 25 and FreeBSD 11.  I put the ENVIRON check at 
--verbosity=2.


On Monday, March 20, 2017 at 5:54:10 AM UTC-7, mwall wrote:
>
> bill,
>
> thanks for posting this.
>
> we probably should refactor the platform stuff in wee_debug.  instead of 
> checking for a specific *platform*, it should check for specific *features*.
>
> for example, it can easily spit out standard platform stuff:
>
> platform.python_version()
> platform.platform()
> platform.version()
>
> there is no need to do any platform check on these.
>
> then for load, it can check for "is this system able to spit out load 
> information" instead of "is this system linux?":
>
> try:
>     os.getloadavg()
>     ...
> except OSError:
>     print "load average not available on this platform"
>
> also, it might be helpful to emit environment:
>
> print "Environment:"
> for n in os.environ:
>     print "%s=%s" % (n, os.environ[n])
>
> all of this can be done without testing for bsd, linux, macos, windows, ...
>
> m
>

Reply via email to