Skip to content

Commit 3e969b2

Browse files
author
BoboTiG
committed
Few minor changes
1 parent 46dfe08 commit 3e969b2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

mss.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def save(self, output='mss', oneshot=False):
229229
self.debug('save')
230230

231231
self.oneshot = oneshot
232-
self.monitors = self.enum_display_monitors() or []
232+
self.monitors = self.enum_display_monitors()
233233

234234
self.debug('save', 'oneshot', self.oneshot)
235235

@@ -651,6 +651,9 @@ def enum_display_monitors(self):
651651
}]
652652

653653
def _callback(monitor, dc, rect, data):
654+
''' Callback for MONITORENUMPROC() function, it will return
655+
a RECT with appropriate values.
656+
'''
654657
rct = rect.contents
655658
results.append({
656659
b'left' : int(rct.left),
@@ -795,6 +798,7 @@ def main(argv=[]):
795798

796799
@contextmanager
797800
def timer(msg):
801+
''' A little timer '''
798802
start = time()
799803
yield
800804
end = time()

0 commit comments

Comments
 (0)