Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mercurial
TortoiseHg
thg-hgtk
Commits
cd7d35c1435b
Commit
4a3c0c2c
authored
Jan 30, 2011
by
Steve Borho
Browse files
sync: if ssl module is not present, do not offer fingerprint query
parent
c32aa44bcf96
Changes
1
Show whitespace changes
Inline
Side-by-side
tortoisehg/hgqt/sync.py
View file @
cd7d35c1
...
...
@@ -10,7 +10,6 @@ import os
import
re
import
tempfile
import
urlparse
import
ssl
from
PyQt4.QtCore
import
*
from
PyQt4.QtGui
import
*
...
...
@@ -1024,10 +1023,13 @@ are expanded in the filename.'''))
if
hasattr
(
le
,
'setPlaceholderText'
):
# Qt >= 4.7
le
.
setPlaceholderText
(
'### host certificate fingerprint ###'
)
hbox
.
addWidget
(
le
)
try
:
import
ssl
# Python 2.6 or backport for 2.5
qb
=
QPushButton
(
_
(
'Query'
))
qb
.
clicked
.
connect
(
genfingerprint
)
hbox
.
addWidget
(
qb
)
except
ImportError
:
pass
BB
=
QDialogButtonBox
bb
=
QDialogButtonBox
(
BB
.
Help
|
BB
.
Save
|
BB
.
Cancel
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment