Skip to content

Commit

Permalink
fix pylint warnings
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@21722 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 19, 2019
1 parent 5f01e0c commit f2b2098
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/xpra/scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ def sigusr1(*_args):
log("SIGUSR1")
idle_add(dump_all_frames, log)
def sigusr2(*_args):
log = get_util_logger().log
log = get_util_logger().info
log("SIGUSR2")
idle_add(dump_gc_frames, info)
idle_add(dump_gc_frames, log)
signal.signal(signal.SIGUSR1, sigusr1)
signal.signal(signal.SIGUSR2, sigusr2)

Expand Down Expand Up @@ -245,7 +245,7 @@ def systemd_run_wrap(mode, args, systemd_run_args):
try:
stderr.write("using systemd-run to wrap '%s' server command\n" % mode)
stderr.write("%s\n" % " ".join(["'%s'" % x for x in cmd]))
except:
except IOError:
pass
try:
p = Popen(cmd)
Expand Down Expand Up @@ -293,7 +293,7 @@ def run_mode(script_file, error_cb, options, args, mode, defaults):
try:
from xpra.sound.gstreamer_util import prevent_import
prevent_import()
except:
except ImportError:
pass
#sound commands don't want to set the name
#(they do it later to prevent glib import conflicts)
Expand Down

0 comments on commit f2b2098

Please sign in to comment.