Skip to content

Commit b07e34e

Browse files
committed
Prefer https:// URLs when available
1 parent 6b6b1a6 commit b07e34e

29 files changed

+121
-121
lines changed

.appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ environment:
1212

1313
matrix:
1414
# For Python versions available on Appveyor, see
15-
# http://www.appveyor.com/docs/installed-software#python
15+
# https://www.appveyor.com/docs/build-environment/
1616
- {PYVER: "27", PYTHON_ARCH: "32"}
1717
- {PYVER: "27", PYTHON_ARCH: "64"}
1818
- {PYVER: "34", PYTHON_ARCH: "32"}
@@ -82,7 +82,7 @@ init:
8282
- "%PYTHON%\\python -c \"import sys; print('64bit: ' + str(sys.maxsize > 2**32))\""
8383

8484
# Get & Install NASM
85-
#- curl -L -o nasminst.exe http://www.nasm.us/pub/nasm/releasebuilds/2.12.02/win64/nasm-2.12.02-installer-x64.exe && start /wait nasminst.exe /S
85+
#- curl -L -o nasminst.exe https://www.nasm.us/pub/nasm/releasebuilds/2.12.02/win64/nasm-2.12.02-installer-x64.exe && start /wait nasminst.exe /S
8686
#- SET PATH="C:\Program Files (x86)\nasm;%PATH%"
8787

8888
# Fix problem with VS2008 Express and 64bit builds

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ statement from all source files in the program, then also delete it here.
2525

2626
You should have received a copy of the GNU Lesser General Public License
2727
along with psycopg2 (see the doc/ directory.)
28-
If not, see <http://www.gnu.org/licenses/>.
28+
If not, see <https://www.gnu.org/licenses/>.
2929

3030

3131
Alternative licenses

NEWS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ Other changes:
357357
- Dropped support for Python 2.4. Please use Psycopg 2.4.x if you need it.
358358
- `~psycopg2.errorcodes` map updated to PostgreSQL 9.2.
359359
- Dropped Zope adapter from source repository. ZPsycopgDA now has its own
360-
project at <http://github.com/psycopg/ZPsycopgDA>.
360+
project at <https://github.com/psycopg/ZPsycopgDA>.
361361

362362

363363
What's new in psycopg 2.4.6

doc/src/advanced.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ geometric type:
156156

157157

158158
.. |point| replace:: :sql:`point`
159-
.. _point: http://www.postgresql.org/docs/current/static/datatype-geometric.html#DATATYPE-GEOMETRIC
159+
.. _point: https://www.postgresql.org/docs/current/static/datatype-geometric.html#DATATYPE-GEOMETRIC
160160

161161
The above function call results in the SQL command::
162162

@@ -259,9 +259,9 @@ documentation), you should keep the connection in `~connection.autocommit`
259259
mode if you wish to receive or send notifications in a timely manner.
260260

261261
.. |LISTEN| replace:: :sql:`LISTEN`
262-
.. _LISTEN: http://www.postgresql.org/docs/current/static/sql-listen.html
262+
.. _LISTEN: https://www.postgresql.org/docs/current/static/sql-listen.html
263263
.. |NOTIFY| replace:: :sql:`NOTIFY`
264-
.. _NOTIFY: http://www.postgresql.org/docs/current/static/sql-notify.html
264+
.. _NOTIFY: https://www.postgresql.org/docs/current/static/sql-notify.html
265265

266266
Notifications are received after every query execution. If the user is
267267
interested in receiving notifications but not in performing any query, the
@@ -375,7 +375,7 @@ completely non-blocking connection attempt: see the libpq documentation for
375375
|PQconnectStart|_.
376376

377377
.. |PQconnectStart| replace:: `!PQconnectStart()`
378-
.. _PQconnectStart: http://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-PQCONNECTSTARTPARAMS
378+
.. _PQconnectStart: https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-PQCONNECTSTARTPARAMS
379379

380380
The same loop should be also used to perform nonblocking queries: after
381381
sending a query via `~cursor.execute()` or `~cursor.callproc()`, call
@@ -484,14 +484,14 @@ psycopg2 scope, as the callback can be tied to the libraries' implementation
484484
details. You can check the `psycogreen`_ project for further informations and
485485
resources about the topic.
486486

487-
.. _coroutine: http://en.wikipedia.org/wiki/Coroutine
487+
.. _coroutine: https://en.wikipedia.org/wiki/Coroutine
488488
.. _greenlet: https://pypi.org/project/greenlet/
489-
.. _green threads: http://en.wikipedia.org/wiki/Green_threads
490-
.. _Eventlet: http://eventlet.net/
489+
.. _green threads: https://en.wikipedia.org/wiki/Green_threads
490+
.. _Eventlet: https://eventlet.net/
491491
.. _gevent: http://www.gevent.org/
492-
.. _SQLAlchemy: http://www.sqlalchemy.org/
492+
.. _SQLAlchemy: https://www.sqlalchemy.org/
493493
.. _psycogreen: http://bitbucket.org/dvarrazzo/psycogreen/
494-
.. __: http://www.postgresql.org/docs/current/static/libpq-async.html
494+
.. __: https://www.postgresql.org/docs/current/static/libpq-async.html
495495

496496
.. warning::
497497

@@ -536,7 +536,7 @@ Server version 9.4 adds a new feature called *Logical Replication*.
536536

537537
- PostgreSQL `Streaming Replication Protocol`__
538538

539-
.. __: http://www.postgresql.org/docs/current/static/protocol-replication.html
539+
.. __: https://www.postgresql.org/docs/current/static/protocol-replication.html
540540

541541

542542
Logical replication Quick-Start

doc/src/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@
116116
rst_epilog = """
117117
.. |DBAPI| replace:: DB API 2.0
118118
119-
.. _DBAPI: http://www.python.org/dev/peps/pep-0249/
119+
.. _DBAPI: https://www.python.org/dev/peps/pep-0249/
120120
121121
.. _transaction isolation level:
122-
http://www.postgresql.org/docs/current/static/transaction-iso.html
122+
https://www.postgresql.org/docs/current/static/transaction-iso.html
123123
124-
.. _mx.DateTime: http://www.egenix.com/products/python/mxBase/mxDateTime/
124+
.. _mx.DateTime: https://www.egenix.com/products/python/mxBase/mxDateTime/
125125
126126
.. |MVCC| replace:: :abbr:`MVCC (Multiversion concurrency control)`
127127
"""

doc/src/connection.rst

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ The ``connection`` class
198198
.. seealso:: the |PREPARE TRANSACTION|_ PostgreSQL command.
199199

200200
.. |PREPARE TRANSACTION| replace:: :sql:`PREPARE TRANSACTION`
201-
.. _PREPARE TRANSACTION: http://www.postgresql.org/docs/current/static/sql-prepare-transaction.html
201+
.. _PREPARE TRANSACTION: https://www.postgresql.org/docs/current/static/sql-prepare-transaction.html
202202

203203

204204
.. index::
@@ -224,7 +224,7 @@ The ``connection`` class
224224
.. seealso:: the |COMMIT PREPARED|_ PostgreSQL command.
225225

226226
.. |COMMIT PREPARED| replace:: :sql:`COMMIT PREPARED`
227-
.. _COMMIT PREPARED: http://www.postgresql.org/docs/current/static/sql-commit-prepared.html
227+
.. _COMMIT PREPARED: https://www.postgresql.org/docs/current/static/sql-commit-prepared.html
228228

229229

230230
.. index::
@@ -246,7 +246,7 @@ The ``connection`` class
246246
.. seealso:: the |ROLLBACK PREPARED|_ PostgreSQL command.
247247

248248
.. |ROLLBACK PREPARED| replace:: :sql:`ROLLBACK PREPARED`
249-
.. _ROLLBACK PREPARED: http://www.postgresql.org/docs/current/static/sql-rollback-prepared.html
249+
.. _ROLLBACK PREPARED: https://www.postgresql.org/docs/current/static/sql-rollback-prepared.html
250250

251251

252252
.. index::
@@ -267,7 +267,7 @@ The ``connection`` class
267267
transactions initiated by a program using such driver should be
268268
unpacked correctly.
269269

270-
.. __: http://jdbc.postgresql.org/
270+
.. __: https://jdbc.postgresql.org/
271271

272272
Xids returned by `!tpc_recover()` also have extra attributes
273273
`~psycopg2.extensions.Xid.prepared`, `~psycopg2.extensions.Xid.owner`,
@@ -277,7 +277,7 @@ The ``connection`` class
277277
.. seealso:: the |pg_prepared_xacts|_ system view.
278278

279279
.. |pg_prepared_xacts| replace:: `pg_prepared_xacts`
280-
.. _pg_prepared_xacts: http://www.postgresql.org/docs/current/static/view-pg-prepared-xacts.html
280+
.. _pg_prepared_xacts: https://www.postgresql.org/docs/current/static/view-pg-prepared-xacts.html
281281

282282

283283

@@ -309,7 +309,7 @@ The ``connection`` class
309309
|PQcancel|_.
310310

311311
.. |PQcancel| replace:: `!PQcancel()`
312-
.. _PQcancel: http://www.postgresql.org/docs/current/static/libpq-cancel.html#LIBPQ-PQCANCEL
312+
.. _PQcancel: https://www.postgresql.org/docs/current/static/libpq-cancel.html#LIBPQ-PQCANCEL
313313

314314
.. versionadded:: 2.3
315315

@@ -325,10 +325,10 @@ The ``connection`` class
325325
available for recover.
326326

327327
.. |RESET| replace:: :sql:`RESET`
328-
.. _RESET: http://www.postgresql.org/docs/current/static/sql-reset.html
328+
.. _RESET: https://www.postgresql.org/docs/current/static/sql-reset.html
329329

330330
.. |SET SESSION AUTHORIZATION| replace:: :sql:`SET SESSION AUTHORIZATION`
331-
.. __: http://www.postgresql.org/docs/current/static/sql-set-session-authorization.html
331+
.. __: https://www.postgresql.org/docs/current/static/sql-set-session-authorization.html
332332

333333
.. versionadded:: 2.0.12
334334

@@ -366,7 +366,7 @@ The ``connection`` class
366366
`autocommit` attribute.
367367

368368
.. _isolation level:
369-
http://www.postgresql.org/docs/current/static/transaction-iso.html
369+
https://www.postgresql.org/docs/current/static/transaction-iso.html
370370

371371
Arguments set to `!None` (the default for all) will not be changed.
372372
The parameters *isolation_level*, *readonly* and *deferrable* also
@@ -376,19 +376,19 @@ The ``connection`` class
376376
|default_transaction_read_only|__, |default_transaction_deferrable|__.
377377

378378
.. |default_transaction_isolation| replace:: :sql:`default_transaction_isolation`
379-
.. __: http://www.postgresql.org/docs/current/static/runtime-config-client.html#GUC-DEFAULT-TRANSACTION-ISOLATION
379+
.. __: https://www.postgresql.org/docs/current/static/runtime-config-client.html#GUC-DEFAULT-TRANSACTION-ISOLATION
380380
.. |default_transaction_read_only| replace:: :sql:`default_transaction_read_only`
381-
.. __: http://www.postgresql.org/docs/current/static/runtime-config-client.html#GUC-DEFAULT-TRANSACTION-READ-ONLY
381+
.. __: https://www.postgresql.org/docs/current/static/runtime-config-client.html#GUC-DEFAULT-TRANSACTION-READ-ONLY
382382
.. |default_transaction_deferrable| replace:: :sql:`default_transaction_deferrable`
383-
.. __: http://www.postgresql.org/docs/current/static/runtime-config-client.html#GUC-DEFAULT-TRANSACTION-DEFERRABLE
383+
.. __: https://www.postgresql.org/docs/current/static/runtime-config-client.html#GUC-DEFAULT-TRANSACTION-DEFERRABLE
384384

385385
The function must be invoked with no transaction in progress.
386386

387387
.. seealso:: |SET TRANSACTION|_ for further details about the behaviour
388388
of the transaction parameters in the server.
389389

390390
.. |SET TRANSACTION| replace:: :sql:`SET TRANSACTION`
391-
.. _SET TRANSACTION: http://www.postgresql.org/docs/current/static/sql-set-transaction.html
391+
.. _SET TRANSACTION: https://www.postgresql.org/docs/current/static/sql-set-transaction.html
392392

393393
.. versionadded:: 2.4.2
394394

@@ -534,7 +534,7 @@ The ``connection`` class
534534
is the encoding defined by the database. It should be one of the
535535
`characters set supported by PostgreSQL`__
536536

537-
.. __: http://www.postgresql.org/docs/current/static/multibyte.html
537+
.. __: https://www.postgresql.org/docs/current/static/multibyte.html
538538

539539

540540
.. index::
@@ -568,7 +568,7 @@ The ``connection`` class
568568
configuration parameters`__ such as ``log_statement``,
569569
``client_min_messages``, ``log_min_duration_statement`` etc.
570570

571-
.. __: http://www.postgresql.org/docs/current/static/runtime-config-logging.html
571+
.. __: https://www.postgresql.org/docs/current/static/runtime-config-logging.html
572572

573573

574574
.. attribute:: notifies
@@ -612,7 +612,7 @@ The ``connection`` class
612612

613613
.. seealso:: libpq docs for `PQbackendPID()`__ for details.
614614

615-
.. __: http://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQBACKENDPID
615+
.. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQBACKENDPID
616616

617617
.. versionadded:: 2.0.8
618618

@@ -633,7 +633,7 @@ The ``connection`` class
633633

634634
.. seealso:: libpq docs for `PQparameterStatus()`__ for details.
635635

636-
.. __: http://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQPARAMETERSTATUS
636+
.. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQPARAMETERSTATUS
637637

638638
.. versionadded:: 2.0.12
639639

@@ -656,7 +656,7 @@ The ``connection`` class
656656

657657
.. seealso:: libpq docs for `PQconninfo()`__ for details.
658658

659-
.. __: http://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-PQCONNINFO
659+
.. __: https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-PQCONNINFO
660660

661661
.. versionadded:: 2.7
662662

@@ -673,7 +673,7 @@ The ``connection`` class
673673

674674
.. seealso:: libpq docs for `PQtransactionStatus()`__ for details.
675675

676-
.. __: http://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQTRANSACTIONSTATUS
676+
.. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQTRANSACTIONSTATUS
677677

678678

679679
.. index::
@@ -688,7 +688,7 @@ The ``connection`` class
688688

689689
.. seealso:: libpq docs for `PQprotocolVersion()`__ for details.
690690

691-
.. __: http://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQPROTOCOLVERSION
691+
.. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQPROTOCOLVERSION
692692

693693
.. versionadded:: 2.0.12
694694

@@ -706,7 +706,7 @@ The ``connection`` class
706706

707707
.. seealso:: libpq docs for `PQserverVersion()`__ for details.
708708

709-
.. __: http://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQSERVERVERSION
709+
.. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQSERVERVERSION
710710

711711
.. versionadded:: 2.0.12
712712

@@ -743,7 +743,7 @@ The ``connection`` class
743743
`~psycopg2.extensions.lobject` to be instantiated.
744744

745745
.. |lo_import| replace:: `!lo_import()`
746-
.. _lo_import: http://www.postgresql.org/docs/current/static/lo-interfaces.html#LO-IMPORT
746+
.. _lo_import: https://www.postgresql.org/docs/current/static/lo-interfaces.html#LO-IMPORT
747747

748748
Available values for *mode* are:
749749

doc/src/cursor.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ The ``cursor`` class
6767
|execute*|_ methods yet.
6868

6969
.. |pg_type| replace:: :sql:`pg_type`
70-
.. _pg_type: http://www.postgresql.org/docs/current/static/catalog-pg-type.html
71-
.. _PQgetlength: http://www.postgresql.org/docs/current/static/libpq-exec.html#LIBPQ-PQGETLENGTH
72-
.. _PQfsize: http://www.postgresql.org/docs/current/static/libpq-exec.html#LIBPQ-PQFSIZE
73-
.. _NUMERIC: http://www.postgresql.org/docs/current/static/datatype-numeric.html#DATATYPE-NUMERIC-DECIMAL
70+
.. _pg_type: https://www.postgresql.org/docs/current/static/catalog-pg-type.html
71+
.. _PQgetlength: https://www.postgresql.org/docs/current/static/libpq-exec.html#LIBPQ-PQGETLENGTH
72+
.. _PQfsize: https://www.postgresql.org/docs/current/static/libpq-exec.html#LIBPQ-PQFSIZE
73+
.. _NUMERIC: https://www.postgresql.org/docs/current/static/datatype-numeric.html#DATATYPE-NUMERIC-DECIMAL
7474
.. |NUMERIC| replace:: :sql:`NUMERIC`
7575

7676
.. versionchanged:: 2.4
@@ -129,7 +129,7 @@ The ``cursor`` class
129129
backward scroll (see the |declare-notes|__).
130130

131131
.. |declare-notes| replace:: :sql:`DECLARE` notes
132-
.. __: http://www.postgresql.org/docs/current/static/sql-declare.html#SQL-DECLARE-NOTES
132+
.. __: https://www.postgresql.org/docs/current/static/sql-declare.html#SQL-DECLARE-NOTES
133133

134134
.. note::
135135

@@ -430,10 +430,10 @@ The ``cursor`` class
430430
more flexibility.
431431

432432
.. |CREATE-TABLE| replace:: :sql:`CREATE TABLE`
433-
.. __: http://www.postgresql.org/docs/current/static/sql-createtable.html
433+
.. __: https://www.postgresql.org/docs/current/static/sql-createtable.html
434434

435435
.. |INSERT-RETURNING| replace:: :sql:`INSERT ... RETURNING`
436-
.. __: http://www.postgresql.org/docs/current/static/sql-insert.html
436+
.. __: https://www.postgresql.org/docs/current/static/sql-insert.html
437437

438438

439439
.. attribute:: query
@@ -620,7 +620,7 @@ The ``cursor`` class
620620
...
621621

622622
.. |COPY| replace:: :sql:`COPY`
623-
.. __: http://www.postgresql.org/docs/current/static/sql-copy.html
623+
.. __: https://www.postgresql.org/docs/current/static/sql-copy.html
624624

625625
.. versionadded:: 2.0.6
626626

doc/src/errorcodes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ From PostgreSQL documentation:
3939

4040
.. seealso:: `PostgreSQL Error Codes table`__
4141

42-
.. __: http://www.postgresql.org/docs/current/static/errcodes-appendix.html#ERRCODES-TABLE
42+
.. __: https://www.postgresql.org/docs/current/static/errcodes-appendix.html#ERRCODES-TABLE
4343

4444

4545
An example of the available constants defined in the module:

0 commit comments

Comments
 (0)