Yes, I noticed that as well, as the deprecated % issue. I followed the
existing way. I'll give the conversion a try and submit a new pull
request. I think I've got my local repository in sync with the master
now. I'm an SVN user, struggling with git.
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
>