Skip to content

Updated example requests for python3 print compatability#22

Open
dotpeedeeeff wants to merge 1 commit intocarbon-intensity:masterfrom
dotpeedeeeff:master
Open

Updated example requests for python3 print compatability#22
dotpeedeeeff wants to merge 1 commit intocarbon-intensity:masterfrom
dotpeedeeeff:master

Conversation

@dotpeedeeeff
Copy link

Existing code snippets were not python3 compatible. I have replaced all the lines containing:

print r.json()

to

print(r.json))

I have tested 5 or 6 of the code snippets and they all run after being pasted in without modification. I used class="p" for the inserted parenthesis, as that was already used by other examples.

include parentheses. Python code snippets now will
run after pasting without modification in
python3.10.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant