[Commits] [wesnoth/wesnoth] 464c3d: wmlindent: use startswith()/endswith() support for...

GitHub noreply at github.com
Wed Jul 29 09:26:16 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 464c3d40b351cf5ebb77fda55e42e7c4526c1511
      https://github.com/wesnoth/wesnoth/commit/464c3d40b351cf5ebb77fda55e42e7c4526c1511
  Author: Elvish_Hunter <elvish.hunter2010 at gmail.com>
  Date:   2015-07-29 (Wed, 29 Jul 2015)

  Changed paths:
    M data/tools/wmlindent

  Log Message:
  -----------
  wmlindent: use startswith()/endswith() support for tuples instead of a for cycle


  Commit: 421a736c456546e965ec69b70a0e00b2ec003ab6
      https://github.com/wesnoth/wesnoth/commit/421a736c456546e965ec69b70a0e00b2ec003ab6
  Author: Elvish_Hunter <elvish.hunter2010 at gmail.com>
  Date:   2015-07-29 (Wed, 29 Jul 2015)

  Changed paths:
    M data/tools/wmlindent

  Log Message:
  -----------
  wmlindent: use print function instead of print statement

This solution has the advantage of fixing one of the most important issues when moving to Python 3.
Also, in other tools this will allow getting rid of the inconsistent usage of print>>sys.stderr/out and sys.stderr/out.write


Compare: https://github.com/wesnoth/wesnoth/compare/14ffaf8a30b6...421a736c4565


More information about the Commits mailing list