File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,10 @@ browser focusing on the comment **you** just created.
42
42
The following shows how you could use github3.py to fetch and display your
43
43
issues in your own style and in your webbrowser.
44
44
45
- .. include :: source/browser.py
46
- :code : python
45
+ .. literalinclude :: source/browser.py
46
+ :language : python
47
47
48
48
Or how to do the same by wrapping the lines in your terminal.
49
49
50
- .. include :: source/wrap_text.py
51
- :code : python
50
+ .. literalinclude :: source/wrap_text.py
51
+ :language : python
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ Using Logging with github3.py
8
8
The following example shows how to set up logging for github3.py. It is off by
9
9
default in the library and will not pollute your logs.
10
10
11
- .. include :: source/logging_ex.py
12
- :code : python
11
+ .. literalinclude :: source/logging_ex.py
12
+ :language : python
13
13
14
14
One thing to note is that if you want more detailed information about what is
15
15
happening while the requests are sent, you can do the following:
Original file line number Diff line number Diff line change 1
1
A Conversation With Octocat
2
2
===========================
3
3
4
- .. include :: source/octocat_say.py
5
- :code : python
4
+ .. literalinclude :: source/octocat_say.py
5
+ :language : python
6
6
7
7
What you should see
8
8
You can’t perform that action at this time.
0 commit comments