On Mon, 18 Mar 2013 10:37:14 -0500
Terry Brown <[email protected]> wrote:

> On Sun, 17 Mar 2013 21:24:49 -0700
> Matt Wilkie <[email protected]> wrote:
> 
> > Ok, that got "Show current path" working, nothing else in the Path context
> > menu is working though. 2x-click on the node heading yields the error
> > below. This combined with wierdness of myLeoSettings.leo seeming to do
> > nothing also makes me think I have something screwy on my local machine.
> 
> > AttributeError: 'generator' object has no attribute 'next'
> 
> Nothing screwy indicated there - that's a python 3.x incompatibility.
> I'll fix it.

ok, in rev. 5637 - untested - let me know if it works.

Cheers -Terry

=== modified file 'leo/plugins/active_path.py'
--- leo/plugins/active_path.py  2012-10-02 17:53:03 +0000
+++ leo/plugins/active_path.py  2013-03-18 15:42:02 +0000
@@ -406,7 +406,7 @@

     # compare folder content to children
     try:
-        path, dirs, files = os.walk(d).next()
+        path, dirs, files = next(os.walk(d))
     except StopIteration:
         # directory deleted?
         c.setHeadString(parent,'*'+parent.h.strip('*')+'*')


> Cheers -Terry
> 

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to