Skip to content

Commit

Permalink
Updated readme example to use main
Browse files Browse the repository at this point in the history
  • Loading branch information
workhorsy committed Oct 12, 2020
1 parent f4f8e2b commit 5b5ebc9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ and 3.
Example
-----
~~~python
from cpuinfo import get_cpu_info
if __name__ == '__main__':
from cpuinfo import get_cpu_info

for key, value in get_cpu_info().items():
print("{0}: {1}".format(key, value))
for key, value in get_cpu_info().items():
print("{0}: {1}".format(key, value))
~~~


Expand Down

0 comments on commit 5b5ebc9

Please sign in to comment.