Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Erik Huelsmann
gajim
Commits
64487929
Commit
64487929
authored
6 years ago
by
Philipp Hörist
Committed by
Philipp Hörist
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix pylint errors
- pointless-statement - pointless-string-statement - unnecessary-lambda
parent
62020bf6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
gajim/common/app.py
+6
-8
6 additions, 8 deletions
gajim/common/app.py
gajim/filetransfers_window.py
+1
-1
1 addition, 1 deletion
gajim/filetransfers_window.py
gajim/gtk/profile.py
+1
-1
1 addition, 1 deletion
gajim/gtk/profile.py
gajim/gui_menu_builder.py
+0
-4
0 additions, 4 deletions
gajim/gui_menu_builder.py
with
8 additions
and
14 deletions
gajim/common/app.py
+
6
−
8
View file @
64487929
...
...
@@ -188,14 +188,12 @@ def detect_dependencies():
# python-gnupg
try
:
import
gnupg
'''
We need https://pypi.python.org/pypi/python-gnupg
but https://pypi.python.org/pypi/gnupg shares the same package name.
It cannot be used as a drop-in replacement.
We test with a version check if python-gnupg is installed as it is
on a much lower version number than gnupg
Also we need at least python-gnupg 0.3.8
'''
# We need https://pypi.python.org/pypi/python-gnupg
# but https://pypi.python.org/pypi/gnupg shares the same package name.
# It cannot be used as a drop-in replacement.
# We test with a version check if python-gnupg is installed as it is
# on a much lower version number than gnupg
# Also we need at least python-gnupg 0.3.8
v_gnupg
=
gnupg
.
__version__
if
V
(
v_gnupg
)
<
V
(
'
0.3.8
'
)
or
V
(
v_gnupg
)
>
V
(
'
1.0.0
'
):
log
(
'
gajim
'
).
info
(
'
Gajim needs python-gnupg >= 0.3.8
'
)
...
...
This diff is collapsed.
Click to expand it.
gajim/filetransfers_window.py
+
1
−
1
View file @
64487929
...
...
@@ -466,7 +466,7 @@ class FileTransfersWindow:
iter_
=
self
.
get_iter_by_sid
(
file_props
.
type_
,
file_props
.
sid
)
if
iter_
is
None
:
return
self
.
model
[
iter_
][
Column
.
SID
]
if
status
==
'
stop
'
:
file_props
.
stopped
=
True
elif
status
==
'
ok
'
:
...
...
This diff is collapsed.
Click to expand it.
gajim/gtk/profile.py
+
1
−
1
View file @
64487929
...
...
@@ -185,7 +185,7 @@ class ProfileWindow(Gtk.ApplicationWindow):
pritext
,
_
(
'
Format of the date must be YYYY-MM-DD
'
),
transient_for
=
self
)
GLib
.
idle_add
(
lambda
:
widget
.
grab_focus
()
)
GLib
.
idle_add
(
widget
.
grab_focus
)
return
True
def
set_value
(
self
,
entry_name
,
value
):
...
...
This diff is collapsed.
Click to expand it.
gajim/gui_menu_builder.py
+
0
−
4
View file @
64487929
...
...
@@ -594,10 +594,6 @@ def get_transport_menu(contact, account):
menu
.
show_all
()
return
menu
'''
Build dynamic Application Menus
'''
def
get_singlechat_menu
(
control_id
):
singlechat_menu
=
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment