[Commits] [wesnoth/wesnoth] ac3118: wmllint-1.4: use 'with' statement when handling fi...

GitHub noreply at github.com
Wed Sep 16 19:06:38 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: ac3118508318d8898d1094c77d9bd7ed2a230fc8
      https://github.com/wesnoth/wesnoth/commit/ac3118508318d8898d1094c77d9bd7ed2a230fc8
  Author: Elvish_Hunter <elvish.hunter2010 at gmail.com>
  Date:   2015-09-16 (Wed, 16 Sep 2015)

  Changed paths:
    M data/tools/wmllint-1.4

  Log Message:
  -----------
  wmllint-1.4: use 'with' statement when handling files


  Commit: 2877a6a489e423e962e0c12cd7892363c6c23985
      https://github.com/wesnoth/wesnoth/commit/2877a6a489e423e962e0c12cd7892363c6c23985
  Author: Elvish_Hunter <elvish.hunter2010 at gmail.com>
  Date:   2015-09-16 (Wed, 16 Sep 2015)

  Changed paths:
    M data/tools/wmllint-1.4

  Log Message:
  -----------
  wmllint-1.4: use enumerate() to iterate over lines


  Commit: f4f11c03fc7da0942d481b59959be8facc10959e
      https://github.com/wesnoth/wesnoth/commit/f4f11c03fc7da0942d481b59959be8facc10959e
  Author: Elvish_Hunter <elvish.hunter2010 at gmail.com>
  Date:   2015-09-16 (Wed, 16 Sep 2015)

  Changed paths:
    M data/tools/wmllint-1.4

  Log Message:
  -----------
  wmllint-1.4: simplify a line modification


  Commit: 3afe74b5de5847415d136508d9bbff9d926bf229
      https://github.com/wesnoth/wesnoth/commit/3afe74b5de5847415d136508d9bbff9d926bf229
  Author: Elvish_Hunter <elvish.hunter2010 at gmail.com>
  Date:   2015-09-16 (Wed, 16 Sep 2015)

  Changed paths:
    M data/tools/wmllint-1.4

  Log Message:
  -----------
  wmllint-1.4: renamed a variable

'i' wasn't used in places visible from within the cycle, so using 'j' was pointless.


  Commit: 53ee364bab1b7e3ce0e81131ad67766720f5c904
      https://github.com/wesnoth/wesnoth/commit/53ee364bab1b7e3ce0e81131ad67766720f5c904
  Author: Elvish_Hunter <elvish.hunter2010 at gmail.com>
  Date:   2015-09-16 (Wed, 16 Sep 2015)

  Changed paths:
    M data/tools/wmllint-1.4

  Log Message:
  -----------
  wmllint-1.4: renamed two variables

Used 'r' instead of 'm' if the code refers to ranged attacks (instead of melee); also, ensure that the regexps check the modified versions of the line.


Compare: https://github.com/wesnoth/wesnoth/compare/17b3c98a5e12...53ee364bab1b


More information about the Commits mailing list