Markus Gritsch wrote this on Fri, Feb 06, 2009 at 04:59:24PM +0100. My reply is below.
> w.setDatesToMark( set( ( datetime.date( 2006, 2, 27 ), > datetime.date( 2006, 3, 6 ), > datetime.date( 2006, 3, 8 ), > datetime.date( 2006, 3, 15 ) ) ) ) > translates to > w.setDatesToMark(set((datetime.date(2006, 2, 27), > datetime.date(2006, 3, 6), datetime.date(2006, 3, 8), > datetime.date(2006, 3, 15)))) > Is there a way to prevent this and keep the original line breaks? Nope. *PythonTidy* uses the abstract syntax tree (AST) output by the *compiler* module, which has been stripped of all layout / indentation information. *PythonTidy* knows nothing about the looks of the original script. It conjures its own layout from the syntax according to PEP8 standards. I like to see repetitious code in columns, too. That's why I provide MAX_SEPS_SERIES, et al, so that longer series are listed one member to a line. In the instant case, the series isn't long enough to trigger that kind of listing unless you set MAX_SEPS_SERIES smaller. The best thing would be to go over the output from *PythonTidy* to restore some esthetics to more complex sections of the code. Remember: Code beautification is a sometime thing. Doing it repetitively is risky. Doing it excessively is wasteful. Doing it obsessively is crazy. -- .. Be Seeing You, .. Chuck Rhode, Sheboygan, WI, USA .. Weather: http://LacusVeris.com/WX .. 32° — Wind SSE 10 mph --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---