~mandel/ubuntuone-client/fix-803984

« back to all changes in this revision

Viewing changes to ubuntuone/platform/windows/pyinotify.py

Fixed lint issues.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
"""Platform agnostic code grabed from pyinotify."""
24
24
import logging
25
25
import os
 
26
import sys
26
27
 
27
28
COMPATIBILITY_MODE = False
28
29
 
 
30
class PyinotifyError(Exception):
 
31
    """Indicates exceptions raised by a Pyinotify class."""
 
32
    pass
 
33
 
29
34
 
30
35
class RawOutputFormat:
31
36
    """
317
322
            logging.debug(err)
318
323
 
319
324
 
 
325
class ProcessEventError(PyinotifyError):
 
326
    """
 
327
    ProcessEventError Exception. Raised on ProcessEvent error.
 
328
    """
 
329
    def __init__(self, err):
 
330
        """
 
331
        @param err: Exception error description.
 
332
        @type err: string
 
333
        """
 
334
        PyinotifyError.__init__(self, err)
 
335
 
 
336
 
320
337
class _ProcessEvent:
321
338
    """
322
339
    Abstract processing event class.
439
456
        @param event: IN_Q_OVERFLOW event.
440
457
        @type event: dict
441
458
        """
442
 
        log.warning('Event queue overflowed.')
 
459
        logging.warning('Event queue overflowed.')
443
460
 
444
461
    def process_default(self, event):
445
462
        """