Skip to content

Commit ddab378

Browse files
authored
Merge pull request praw-dev#2048 from praw-dev/rename_to_main
Update references of master branch to main branch
2 parents e6f1f1c + 3ef5a4f commit ddab378

9 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,4 @@ Please also read `Contributing to PRAW`_.
130130

131131
.. _slack: https://join.slack.com/t/praw/shared_invite/enQtOTUwMDcxOTQ0NzY5LWVkMGQ3ZDk5YmQ5MDEwYTZmMmJkMTJkNjBkNTY3OTU0Y2E2NGRlY2ZhZTAzMWZmMWRiMTMwYjdjODkxOGYyZjY
132132

133-
.. _unreleased: https://github.com/praw-dev/praw/blob/master/CHANGES.rst#unreleased
133+
.. _unreleased: https://github.com/praw-dev/praw/blob/main/CHANGES.rst#unreleased

.github/workflows/scorecards-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ name: Scorecard supply-chain security
3030
on:
3131
branch_protection_rule:
3232
push:
33-
branches: [ master ]
33+
branches: [ main ]
3434
schedule:
3535
- cron: 0 15 * * 1
3636
permissions: read-all

.github/workflows/tag_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ jobs:
66
name: Tag Release
77
on:
88
push:
9-
branches: [ master, release_test ]
9+
branches: [ main, release_test ]
1010
permissions:
1111
contents: write

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ PRAW: The Python Reddit API Wrapper
1919

2020
.. image:: https://coveralls.io/repos/github/praw-dev/praw/badge.svg
2121
:alt: Coveralls Coverage
22-
:target: https://coveralls.io/github/praw-dev/praw?branch=master
22+
:target: https://coveralls.io/github/praw-dev/praw?branch=main
2323

2424
.. image:: https://api.securityscorecards.dev/projects/github.com/praw-dev/praw/badge
2525
:alt: OpenSSF Scorecard
@@ -59,7 +59,7 @@ To install the latest development version of PRAW run the following instead:
5959

6060
.. code-block:: bash
6161
62-
pip install --upgrade https://github.com/praw-dev/praw/archive/master.zip
62+
pip install --upgrade https://github.com/praw-dev/praw/archive/main.zip
6363
6464
For instructions on installing Python and pip see "The Hitchhiker's Guide to Python"
6565
`Installation Guides <https://docs.python-guide.org/en/latest/starting/installation/>`_.

docs/code_overview/exceptions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Exceptions in PRAW
44
In addition to exceptions under the ``praw.exceptions`` namespace shown below,
55
exceptions might be raised that inherit from ``prawcore.PrawcoreException``. Please see
66
the following resource for information on those exceptions:
7-
https://github.com/praw-dev/prawcore/blob/master/prawcore/exceptions.py
7+
https://github.com/praw-dev/prawcore/blob/main/prawcore/exceptions.py
88

99
praw.exceptions
1010
---------------

docs/getting_started/configuration.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Using an HTTP or HTTPS proxy with PRAW
2626
PRAW internally relies upon the requests_ package to handle HTTP requests. Requests
2727
supports use of ``HTTP_PROXY`` and ``HTTPS_PROXY`` environment variables in order to
2828
proxy HTTP and HTTPS requests respectively [`ref
29-
<https://requests.readthedocs.io/en/master/user/advanced/#proxies>`_].
29+
<https://requests.readthedocs.io/en/main/user/advanced/#proxies>`_].
3030

3131
Given that PRAW exclusively communicates with Reddit via HTTPS, only the ``HTTPS_PROXY``
3232
option should be required.
@@ -69,11 +69,11 @@ certificate without an exception from requests_, first export the certificate as
6969
7070
The code above creates a custom Session_ instance and `configures it to use a custom
7171
certificate
72-
<https://requests.readthedocs.io/en/master/user/advanced/#ssl-cert-verification>`_, then
72+
<https://requests.readthedocs.io/en/main/user/advanced/#ssl-cert-verification>`_, then
7373
passes it as a parameter when creating the :class:`.Reddit` instance. Note that the
7474
example above uses a :ref:`password_flow` authentication type, but this method will work
7575
for any authentication type.
7676

7777
.. _requests: https://requests.readthedocs.io
7878

79-
.. _session: https://2.python-requests.org/en/master/api/#requests.Session
79+
.. _session: https://requests.readthedocs.io/en/stable/api/#request-sessions

docs/getting_started/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ advantage of? If so, you can install PRAW directly from GitHub like so:
4646

4747
.. code-block:: bash
4848
49-
pip install --upgrade https://github.com/praw-dev/praw/archive/master.zip
49+
pip install --upgrade https://github.com/praw-dev/praw/archive/main.zip
5050
5151
You can also directly clone a copy of the repository using git, like so:
5252

docs/package_info/contributing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ Please also read the `Contributing Guidelines`_
304304

305305
.. _commit 280525c16ba28cdd69cdbb272a0e2764b1c7e6a0: https://github.com/praw-dev/praw/commit/280525c16ba28cdd69cdbb272a0e2764b1c7e6a0
306306

307-
.. _contributing guidelines: https://github.com/praw-dev/praw/blob/master/.github/CONTRIBUTING.rst
307+
.. _contributing guidelines: https://github.com/praw-dev/praw/blob/main/.github/CONTRIBUTING.rst
308308

309309
.. _coveralls: https://coveralls.io/github/praw-dev/praw
310310

praw/reddit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def __init__(
198198
199199
.. |Session| replace:: ``Session``
200200
201-
.. _session: https://2.python-requests.org/en/master/api/#requests.Session
201+
.. _session: https://requests.readthedocs.io/en/stable/api/#request-sessions
202202
203203
.. code-block:: python
204204

0 commit comments

Comments
 (0)