r46810 - path

hawkowl-TA+aISz0psMTMxyoc4vAAJOcrHinNvQL0E9HWUfgJXw@public.gmane.org
Newsgroups gmane.comp.python.twisted.commits
Message-ID <[email protected]>
Author: hawkowl
Date: Tue Feb 16 21:47:38 2016
New Revision: 46810

Modified:
   branches/inotify-py3-8211/twisted/internet/inotify.py

Log:
path

Modified: branches/inotify-py3-8211/twisted/internet/inotify.py
==============================================================================
--- branches/inotify-py3-8211/twisted/internet/inotify.py	(original)
+++ branches/inotify-py3-8211/twisted/internet/inotify.py	Tue Feb 16 21:47:38 2016
@@ -209,7 +209,7 @@
         """
         self._inotify.remove(self._fd, wd)
         iwp = self._watchpoints.pop(wd)
-        self._watchpaths.pop(iwp.asBytesMode().path)
+        self._watchpaths.pop(iwp.path)
 
 
     def connectionLost(self, reason):
@@ -260,7 +260,7 @@
             except KeyError:
                 continue
 
-            path = iwp.asBytesMode().path
+            path = iwp.path
             if name:
                 path = path.child(name)
             iwp._notify(path, mask)
@@ -296,7 +296,7 @@
         meaning that we generate double events, your app must be resistant.
         """
         try:
-            listdir = iwp.asBytesMode().path.children()
+            listdir = iwp.path.children()
         except OSError:
             # Somebody or something (like a test) removed this directory while
             # we were in the callLater(0...) waiting. It doesn't make sense to
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.