Skip to content

Commit

Permalink
Fix bytes <> str warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Léa Klein authored and BoboTiG committed Sep 10, 2018
1 parent 43ea4bf commit 0c5e353
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/watchdog/observers/inotify_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def __init__(self, wd, mask, cookie, name, src_path):
self._wd = wd
self._mask = mask
self._cookie = cookie
self._name = name
self._name = name.decode()
self._src_path = src_path

@property
Expand Down Expand Up @@ -571,5 +571,6 @@ def _get_mask_string(mask):

def __repr__(self):
mask_string = self._get_mask_string(self.mask)
s = "<InotifyEvent: src_path=%s, wd=%d, mask=%s, cookie=%d, name=%s>"
return s % (self.src_path, self.wd, mask_string, self.cookie, self.name)
s = '<%s: src_path=%r, wd=%d, mask=%s, cookie=%d, name=%s>'
return s % (type(self).__name__, self.src_path, self.wd, mask_string,
self.cookie, self.name)

0 comments on commit 0c5e353

Please sign in to comment.