Commit 911aa4db authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Use URLs with transport encryption

parent 37ac6522
......@@ -34,13 +34,13 @@ import os
# Adapt this range: =======================================================
FULLAUTHOR = "Wolfgang Rohdewald <wolfgang@rohdewald.de>"
LICENSE = 'GNU General Public License v2'
URL = "http://www.kde.org/applications/games/kajongg/"
URL = "https://kde.org/applications/games/org.kde.kajongg"
VERSION = "17.04"
# =======================================================
# This most certainly does not run on Windows. We do not care for now.
# at least all / in paths would have to be changeds
# at least all / in paths would have to be changed
(AUTHOR, EMAIL) = re.match('^(.*?)\s*<(.*)>$', FULLAUTHOR).groups()
......
......@@ -31,7 +31,7 @@ class About:
def __init__(self):
self.appName = "kajongg"
catalog = ""
homePage = "http://kde.org/applications/games/kajongg/"
homePage = "https://kde.org/applications/games/kajongg/"
version = str(Internal.defaultPort)
programName = i18n("Kajongg")
description = i18n(
......
......@@ -379,7 +379,7 @@ class IntDict(defaultdict, StrMixin):
IntDict is not identical to that of defaultdict"""
result = IntDict(self.parent)
defaultdict.update(result, self)
# see http://www.logilab.org/ticket/23986
# see https://www.logilab.org/ticket/23986
return result
def __add__(self, other):
......
......@@ -1062,7 +1062,7 @@ class PlayingGame(Game):
if not x.isBonus]
for tile in allTiles:
assert isinstance(tile, Tile), tile
# see http://www.logilab.org/ticket/23986
# see https://www.logilab.org/ticket/23986
invisibleTiles = set(x for x in allTiles
if x not in self.visibleTiles)
msg = i18n('Short living wall: Tile is invisible, hence dangerous')
......
......@@ -71,7 +71,7 @@ class RichTextColumnDelegate(QStyledItemDelegate):
class RightAlignedCheckboxDelegate(QStyledItemDelegate):
"""as the name says. From
http://qt-project.org/faq/answer/how_can_i_align_the_checkboxes_in_a_view"""
https://wiki.qt.io/Technical_FAQ#How_can_I_align_the_checkboxes_in_a_view.3F"""
def __init__(self, parent, cellFilter):
super(RightAlignedCheckboxDelegate, self).__init__(parent)
......
......@@ -248,7 +248,7 @@ class Help:
return Help.__getDocUrl(fallbacks) if factory.status == '404' else url
host = 'docs.kde.org'
path = '?application=kajongg&language={}'.format(languages[0])
url = 'http://' + host + path
url = 'https://' + host + path
factory = client.HTTPClientFactory(url.encode('ascii'))
factory.protocol = client.HTTPPageGetter
factory.protocol.handleEndHeaders = lambda x: x
......@@ -1170,7 +1170,7 @@ class AboutKajonggDialog(KDialog):
authorWidget = QWidget()
authorLayout = QVBoxLayout()
bugsLabel = QLabel(
i18n('Please use <a href="http://bugs.kde.org">http://bugs.kde.org</a> to report bugs.'))
i18n('Please use <a href="https://bugs.kde.org">https://bugs.kde.org</a> to report bugs.'))
bugsLabel.setContentsMargins(0, 2, 0, 4)
bugsLabel.setOpenExternalLinks(True)
authorLayout.addWidget(bugsLabel)
......
......@@ -44,7 +44,7 @@ class MyHook(cgitb.Hook):
prefix='bt_',
text=True)[1]
# cgitb can only handle ascii, work around that.
# See http://bugs.python.org/issue22746
# See https://bugs.python.org/issue22746
cgitb.Hook.__init__(self, file=codecs.open(self.tmpFileName, 'w',
encoding='latin-1', errors='xmlcharrefreplace'))
......@@ -133,7 +133,7 @@ class MainWindow(KXmlGuiWindow):
# pylint: disable=too-many-instance-attributes
def __init__(self):
# see http://lists.kde.org/?l=kde-games-devel&m=120071267328984&w=2
# see https://marc.info/?l=kde-games-devel&m=120071267328984&w=2
super(MainWindow, self).__init__()
Internal.app.aboutToQuit.connect(self.aboutToQuit)
self.exitConfirmed = None
......
......@@ -455,7 +455,7 @@ class ModelTest(QObject):
# assert( index.model() == self.model )
# This raises an error that is not part of the qbzr code.
# see
# http://www.opensubscriber.com/message/pyqt@riverbankcomputing.com/10335500.html
# https://www.riverbankcomputing.com/pipermail/pyqt/2011-February/029300.html
assert(index.row() == row)
assert(index.column() == column)
# While you can technically return a QVariant usually this is a sign
......
......@@ -805,7 +805,7 @@ class PlayingPlayer(Player):
dangerous.append((elements.greenHandTiles,
i18n('Player %1 has 3 or 4 exposed melds, all are green', pName)))
group = list(defaultdict.keys(self.visibleTiles))[0].group
# see http://www.logilab.org/ticket/23986
# see https://www.logilab.org/ticket/23986
assert group.islower(), self.visibleTiles
if group in Tile.colors:
if all(x.group == group for x in self.visibleTiles):
......
......@@ -31,7 +31,7 @@ Usage: see ../README.windows
# ==== adapt this part =====
FULLAUTHOR = "Wolfgang Rohdewald <wolfgang@rohdewald.de>"
LICENSE = 'GNU General Public License v2'
URL = "http://www.kde.org/applications/games/kajongg/"
URL = "https://www.kde.org/applications/games/kajongg/"
VERSION = "17.04"
# ==========================
......
......@@ -113,7 +113,7 @@ for png in (
oggdec = 'oggdecV1.10.1.zip'
try:
call('wget http://www.rarewares.org/files/ogg/{}'.format(oggdec).split())
call('wget https://www.rarewares.org/files/ogg/{}'.format(oggdec).split())
with zipfile.ZipFile(oggdec) as ziparch:
ziparch.extract('oggdec.exe')
finally:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment