Skip to content

Commit

Permalink
python3 compat syntax (since it is imported from setup.py before 2to3…
Browse files Browse the repository at this point in the history
… can get a chance to run..)

git-svn-id: https://xpra.org/svn/Xpra/trunk@6177 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Apr 27, 2014
1 parent 556579f commit 2475049
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xpra/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ def listget(self, k, default_value=[], item_type=None, max_items=None):
def log_screen_sizes(root_w, root_h, sizes):
try:
do_log_screen_sizes(root_w, root_h, sizes)
except Exception, e:
except Exception:
from xpra.log import Logger
log = Logger("util")
log.warn("failed to parse screen size information: %s", e)
log.warn("failed to parse screen size information: %s", sys.exc_info()[1])

def prettify_plug_name(s, default=""):
if not s:
Expand Down

0 comments on commit 2475049

Please sign in to comment.