Skip to content

Commit

Permalink
Update URLs to https:// in docs and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jdufresne committed Jan 11, 2019
1 parent 8ab8303 commit 331d9d8
Show file tree
Hide file tree
Showing 60 changed files with 86 additions and 88 deletions.
4 changes: 2 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1634,7 +1634,7 @@ Features added

* Generators have new properties ``__name__`` and ``__qualname__``
that provide the plain/qualified name of the generator function
(following CPython 3.5). See http://bugs.python.org/issue21205
(following CPython 3.5). See https://bugs.python.org/issue21205

* The ``inline`` function modifier is available as a decorator
``@cython.inline`` in pure mode.
Expand Down Expand Up @@ -1680,7 +1680,7 @@ Optimizations
evaluation and generally improves the code flow in the generated C code.

* The Python expression "2 ** N" is optimised into bit shifting.
See http://bugs.python.org/issue21420
See https://bugs.python.org/issue21420

* Cascaded assignments (a = b = ...) try to minimise the number of
type coercions.
Expand Down
4 changes: 2 additions & 2 deletions Cython/Build/Dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ class Extension_setuptools(Extension): pass
filepattern = cython_sources[0]
if len(cython_sources) > 1:
print("Warning: Multiple cython sources found for extension '%s': %s\n"
"See http://cython.readthedocs.io/en/latest/src/userguide/sharing_declarations.html "
"See https://cython.readthedocs.io/en/latest/src/userguide/sharing_declarations.html "
"for sharing declarations among Cython files." % (pattern.name, cython_sources))
else:
# ignore non-cython modules
Expand Down Expand Up @@ -1073,7 +1073,7 @@ def copy_to_build_dir(filepath, root=os.getcwd()):
# This is a bit more involved than it should be, because KeyboardInterrupts
# break the multiprocessing workers when using a normal pool.map().
# See, for example:
# http://noswap.com/blog/python-multiprocessing-keyboardinterrupt
# https://noswap.com/blog/python-multiprocessing-keyboardinterrupt
try:
result = pool.map_async(cythonize_one_helper, to_compile, chunksize=1)
pool.close()
Expand Down
2 changes: 1 addition & 1 deletion Cython/Compiler/CmdLine.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from . import Options

usage = """\
Cython (http://cython.org) is a compiler for code written in the
Cython (https://cython.org/) is a compiler for code written in the
Cython language. Cython is based on Pyrex by Greg Ewing.
Usage: cython [options] sourcefile.{pyx,py} ...
Expand Down
4 changes: 2 additions & 2 deletions Cython/Compiler/Errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(self, position = None, message = u""):
self.reported = False
Exception.__init__(self, self.formatted_message)
# Python Exception subclass pickling is broken,
# see http://bugs.python.org/issue1692335
# see https://bugs.python.org/issue1692335
self.args = (position, message)

def __str__(self):
Expand Down Expand Up @@ -110,7 +110,7 @@ def __init__(self, pos, context, message, cause, stacktrace=None):
message += u'%s: %s' % (cause.__class__.__name__, cause)
CompileError.__init__(self, pos, message)
# Python Exception subclass pickling is broken,
# see http://bugs.python.org/issue1692335
# see https://bugs.python.org/issue1692335
self.args = (pos, context, message, cause, stacktrace)

class NoElementTreeInstalledException(PyrexError):
Expand Down
2 changes: 1 addition & 1 deletion Cython/Compiler/Options.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __repr__(self):
"""
The members of this module are documented using autodata in
Cython/docs/src/reference/compilation.rst.
See http://www.sphinx-doc.org/en/master/ext/autodoc.html#directive-autoattribute
See https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#directive-autoattribute
for how autodata works.
Descriptions of those members should start with a #:
Donc forget to keep the docs in sync by removing and adding
Expand Down
2 changes: 1 addition & 1 deletion Cython/Compiler/PyrexTypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def deduce_template_params(self, actual):
Deduce any template params in this (argument) type given the actual
argument type.
http://en.cppreference.com/w/cpp/language/function_template#Template_argument_deduction
https://en.cppreference.com/w/cpp/language/function_template#Template_argument_deduction
"""
return {}

Expand Down
2 changes: 1 addition & 1 deletion Cython/Compiler/Symtab.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ def declare(self, name, cname, type, pos, visibility, shadow = 0, is_type = 0, c
if type.is_buffer and not isinstance(self, LocalScope): # and not is_type:
error(pos, 'Buffer types only allowed as function local variables')
if not self.in_cinclude and cname and re.match("^_[_A-Z]+$", cname):
# See http://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html#Reserved-Names
# See https://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html#Reserved-Names
warning(pos, "'%s' is a reserved name in C." % cname, -1)
entries = self.entries
if name and name in entries and not shadow:
Expand Down
6 changes: 3 additions & 3 deletions Cython/Debugger/libpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
From gdb 7 onwards, gdb's build can be configured --with-python, allowing gdb
to be extended with Python code e.g. for library-specific data visualizations,
such as for the C++ STL types. Documentation on this API can be seen at:
http://sourceware.org/gdb/current/onlinedocs/gdb/Python-API.html
https://sourceware.org/gdb/current/onlinedocs/gdb/Python-API.html
This python module deals with the case when the process being debugged (the
Expand Down Expand Up @@ -315,7 +315,7 @@ def __init__(self, tp_name, address):
def __repr__(self):
# For the NULL pointer, we have no way of knowing a type, so
# special-case it as per
# http://bugs.python.org/issue8032#msg100882
# https://bugs.python.org/issue8032#msg100882
if self.address == 0:
return '0x0'
return '<%s at remote 0x%x>' % (self.tp_name, self.address)
Expand Down Expand Up @@ -1451,7 +1451,7 @@ def register (obj):

# Unfortunately, the exact API exposed by the gdb module varies somewhat
# from build to build
# See http://bugs.python.org/issue8279?#msg102276
# See https://bugs.python.org/issue8279?#msg102276

class Frame(object):
'''
Expand Down
2 changes: 1 addition & 1 deletion Cython/Includes/libc/time.pxd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# http://en.wikipedia.org/wiki/C_date_and_time_functions
# https://en.wikipedia.org/wiki/C_date_and_time_functions

from libc.stddef cimport wchar_t

Expand Down
2 changes: 1 addition & 1 deletion Cython/Includes/posix/dlfcn.pxd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# POSIX dynamic linking/loading interface.
# http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/dlfcn.h.html
# https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/dlfcn.h.html

cdef extern from "<dlfcn.h>" nogil:
void *dlopen(const char *, int)
Expand Down
2 changes: 1 addition & 1 deletion Cython/Includes/posix/mman.pxd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/mman.h.html
# https://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/mman.h.html

from posix.types cimport off_t, mode_t

Expand Down
2 changes: 1 addition & 1 deletion Cython/Includes/posix/resource.pxd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/resource.h.html
# https://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/resource.h.html

from posix.time cimport timeval
from posix.types cimport id_t
Expand Down
2 changes: 1 addition & 1 deletion Cython/Includes/posix/stdio.pxd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# POSIX additions to <stdio.h>.
# http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdio.h.html
# https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdio.h.html

from libc.stdio cimport FILE
from libc.stddef cimport wchar_t
Expand Down
2 changes: 1 addition & 1 deletion Cython/Includes/posix/stdlib.pxd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# POSIX additions to <stdlib.h>
# http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdlib.h.html
# https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdlib.h.html

cdef extern from "<stdlib.h>" nogil:
void _Exit(int)
Expand Down
2 changes: 1 addition & 1 deletion Cython/Includes/posix/time.pxd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/time.h.html
# https://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/time.h.html

from posix.types cimport suseconds_t, time_t, clockid_t, timer_t
from posix.signal cimport sigevent
Expand Down
2 changes: 1 addition & 1 deletion Cython/Includes/posix/wait.pxd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/wait.h.html
# https://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/wait.h.html

from posix.types cimport pid_t, id_t
from posix.signal cimport siginfo_t
Expand Down
4 changes: 2 additions & 2 deletions Cython/Utility/Buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ fail:;
// the format string; the access mode/flags is checked by the
// exporter. See:
//
// http://docs.python.org/3/library/struct.html
// http://legacy.python.org/dev/peps/pep-3118/#additions-to-the-struct-string-syntax
// https://docs.python.org/3/library/struct.html
// https://www.python.org/dev/peps/pep-3118/#additions-to-the-struct-string-syntax
//
// The alignment code is copied from _struct.c in Python.

Expand Down
2 changes: 1 addition & 1 deletion Cython/Utility/ModuleSetupCode.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@
#endif
#endif

// Work around clang bug http://stackoverflow.com/questions/21847816/c-invoke-nested-template-class-destructor
// Work around clang bug https://stackoverflow.com/questions/21847816/c-invoke-nested-template-class-destructor
template<typename T>
void __Pyx_call_destructor(T& x) {
x.~T();
Expand Down
2 changes: 1 addition & 1 deletion Cython/Utility/ObjectHandling.c
Original file line number Diff line number Diff line change
Expand Up @@ -1986,7 +1986,7 @@ static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args,
// ((char *)(foo) \
// + Py_BUILD_ASSERT_EXPR(offsetof(struct foo, string) == 0))
//
// Written by Rusty Russell, public domain, http://ccodearchive.net/
// Written by Rusty Russell, public domain, https://ccodearchive.net/
#define __Pyx_BUILD_ASSERT_EXPR(cond) \
(sizeof(char [1 - 2*!(cond)]) - 1)

Expand Down
2 changes: 1 addition & 1 deletion Cython/Utility/Optimize.c
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ static PyObject* __Pyx__PyNumber_PowerOf2(PyObject *two, PyObject *exp, PyObject

static PyObject* __Pyx__PyNumber_PowerOf2(PyObject *two, PyObject *exp, PyObject *none, int inplace) {
// in CPython, 1<<N is substantially faster than 2**N
// see http://bugs.python.org/issue21420
// see https://bugs.python.org/issue21420
#if !CYTHON_COMPILING_IN_PYPY
Py_ssize_t shiftby;
#if PY_MAJOR_VERSION < 3
Expand Down
2 changes: 1 addition & 1 deletion Demos/benchmarks/bpnn3.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/python
# Back-Propagation Neural Networks
#
# Written in Python. See http://www.python.org/
# Written in Python. See https://www.python.org/
#
# Neil Schemenauer <[email protected]>

Expand Down
2 changes: 1 addition & 1 deletion Demos/benchmarks/nqueens.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def permutations(iterable):
else:
return

# From http://code.activestate.com/recipes/576647/
# From https://code.activestate.com/recipes/576647/
@cython.locals(queen_count=int, i=int, vec=list)
def n_queens(queen_count):
"""N-Queens solver.
Expand Down
4 changes: 2 additions & 2 deletions Demos/freeze/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,6 @@ Cython 0.11.2 (or newer, assuming the API does not change)
SEE ALSO
========

* `Python <http://www.python.org>`_
* `Python <https://www.python.org/>`_
* `Cython <http://www.cython.org>`_
* `freeze.py <http://wiki.python.org/moin/Freeze>`_
* `freeze.py <https://wiki.python.org/moin/Freeze>`_
6 changes: 3 additions & 3 deletions Doc/s5/cython-ep2008.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Cython is

* an Open-Source project

* http://cython.org
* https://cython.org/

* a Python compiler (almost)

Expand Down Expand Up @@ -115,7 +115,7 @@ Major Cython Developers

* many, *many* others - see

* http://cython.org/
* https://cython.org/

* the mailing list archives of Cython and Pyrex

Expand Down Expand Up @@ -398,4 +398,4 @@ Cython

\... use it, and join the project!

http://cython.org/
https://cython.org/
2 changes: 1 addition & 1 deletion Doc/s5/ui/default/iepngfix.htc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<script>

// IE5.5+ PNG Alpha Fix v1.0 by Angus Turnbull http://www.twinhelix.com
// IE5.5+ PNG Alpha Fix v1.0 by Angus Turnbull https://www.twinhelix.com/
// Free usage permitted as long as this notice remains intact.

// This must be a path to a blank image. That's all the configuration you need here.
Expand Down
2 changes: 1 addition & 1 deletion Doc/s5/ui/default/slides.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// S5 v1.1 slides.js -- released into the Public Domain
//
// Please see http://www.meyerweb.com/eric/tools/s5/credits.html for information
// Please see https://meyerweb.com/eric/tools/s5/credits.html for information
// about all the wonderful and talented contributors to this code!

var undef;
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
https://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

Expand Down
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Welcome to Cython!
Welcome to Cython!
==================

Cython is a language that makes writing C extensions for
Expand All @@ -14,8 +14,8 @@ code from Cython code.
This makes Cython the ideal language for wrapping external C libraries, and
for fast C modules that speed up the execution of Python code.

* Official website: http://cython.org/
* Documentation: http://docs.cython.org/en/latest/
* Official website: https://cython.org/
* Documentation: http://docs.cython.org/
* Github repository: https://github.com/cython/cython
* Wiki: https://github.com/cython/cython/wiki

Expand Down
2 changes: 1 addition & 1 deletion Tools/cython-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
(defgroup cython nil "Major mode for editing and compiling Cython files"
:group 'languages
:prefix "cython-"
:link '(url-link :tag "Homepage" "http://cython.org"))
:link '(url-link :tag "Homepage" "https://cython.org/"))

;;;###autoload
(defcustom cython-default-compile-format "cython -a %s"
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ environment:
global:
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# /E:ON and /V:ON options are not enabled in the batch script interpreter
# See: http://stackoverflow.com/a/13751649/163740
# See: https://stackoverflow.com/questions/11267463/compiling-python-modules-on-windows-x64/13751649#13751649
WITH_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"

matrix:
Expand Down
2 changes: 1 addition & 1 deletion appveyor/install.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Sample script to install Python and pip under Windows
# Authors: Olivier Grisel and Kyle Kastner
# License: CC0 1.0 Universal: http://creativecommons.org/publicdomain/zero/1.0/
# License: CC0 1.0 Universal: https://creativecommons.org/publicdomain/zero/1.0/

$PYTHON_BASE_URL = "https://www.python.org/ftp/python/"
$GET_PIP_URL = "https://bootstrap.pypa.io/get-pip.py"
Expand Down
2 changes: 1 addition & 1 deletion docs/README
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ On windows systems, you only need Sphinx. Open PowerShell and type::
You can then see the documentation by opening in a browser ``cython/docs/build/html/index.html``.

The current Cython documentation files are hosted at
https://cython.readthedocs.io/en/latest/
https://cython.readthedocs.io/


Notes
Expand Down
2 changes: 1 addition & 1 deletion docs/TODO
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Eventually, it seems all of the old users manual could be whittled
down into independent tutorial topics. Much discussion of what we'd
like to see is at

http://www.mail-archive.com/[email protected]/msg06945.html
https://www.mail-archive.com/[email protected]/msg06945.html

There is currently a huge amount of redundancy, but no one section has
it all.
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Welcome to Cython's Documentation
=================================

Also see the `Cython project homepage <http://cython.org/>`_.
Also see the `Cython project homepage <https://cython.org/>`_.

.. toctree::
:maxdepth: 2
Expand Down
2 changes: 1 addition & 1 deletion docs/sphinxext/cython_highlighting.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class CythonLexer(RegexLexer):
"""
For `Cython <http://cython.org>`_ source code.
For `Cython <https://cython.org/>`_ source code.
"""

name = 'Cython'
Expand Down
4 changes: 2 additions & 2 deletions docs/src/quickstart/build.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,5 @@ Using the Sage notebook
functions defined in a Cython cell imported into the running session.


.. [Jupyter] http://jupyter.org/
.. [Sage] W. Stein et al., Sage Mathematics Software, http://www.sagemath.org/
.. [Jupyter] https://jupyter.org/
.. [Sage] W. Stein et al., Sage Mathematics Software, https://www.sagemath.org/
4 changes: 2 additions & 2 deletions docs/src/quickstart/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The simplest way of installing Cython is by using ``pip``::


The newest Cython release can always be downloaded from
http://cython.org. Unpack the tarball or zip file, enter the
https://cython.org/. Unpack the tarball or zip file, enter the
directory, and then run::

python setup.py install
Expand All @@ -59,4 +59,4 @@ with

.. [Anaconda] https://docs.anaconda.com/anaconda/
.. [Canopy] https://www.enthought.com/product/canopy/
.. [Sage] W. Stein et al., Sage Mathematics Software, http://www.sagemath.org/
.. [Sage] W. Stein et al., Sage Mathematics Software, https://www.sagemath.org/
Loading

0 comments on commit 331d9d8

Please sign in to comment.