1. Antonio Cuni
  2. wmctrl

Commits

Antonio Cuni  committed b3ce4c7

add a bunch of useful hg extensions

  • Participants
  • Parent commits 7e23675
  • Branches default

Comments (0)

Files changed (1)

File wmctrl.py

View file
 import os
 from commands import getoutput
-from collections import namedtuple
+try:
+    from collections import namedtuple
+except ImportError:
+    from namedtuple import namedtuple
 
 BaseWindow = namedtuple('Window', 'id desktop pid x y w h wm_class host wm_name wm_window_role')