-
Notifications
You must be signed in to change notification settings - Fork 12.5k
osinfo.py simplification #37
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
Comments
Thanks, feel free to make the change Cheers
|
Pull request submitted. Nice set of tools, I'll continue looking through them. Cheers. |
Thanks very much On 20 Feb 2016, at 05:24, Doug Mahugh [email protected] wrote:
|
FYI, you can use enumerate() to simplify osinfo.py. Instead of this:
i=1
for item in profile:
print( '#',i,' ',item)
i=i+1;
... do this ...
for i, item in enumerate(profile, 1):
print( '#',i,' ',item)
The text was updated successfully, but these errors were encountered: