[fofix-commits] [fofix/fofix] 0354ac: Simplify condition statements

GitHub noreply at github.com
Sat Jul 11 18:01:54 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/fofix/fofix
  Commit: 0354ace9a57541e6c344e920aa6588650b3b6632
      https://github.com/fofix/fofix/commit/0354ace9a57541e6c344e920aa6588650b3b6632
  Author: François Magimel <francois.magimel at etu.enseeiht.fr>
  Date:   2015-07-11 (Sat, 11 Jul 2015)

  Changed paths:
    M data/themes/MegaLight/CustomTheme.py
    M fofix/core/Cerealizer.py
    M fofix/core/Collada.py
    M fofix/core/Config.py
    M fofix/core/Data.py
    M fofix/core/GameEngine.py
    M fofix/core/Image.py
    M fofix/core/Input.py
    M fofix/core/Player.py
    M fofix/core/Resource.py
    M fofix/core/Settings.py
    M fofix/core/Shader.py
    M fofix/core/Theme.py
    M fofix/core/VFS.py
    M fofix/core/Video.py
    M fofix/core/View.py
    M fofix/game/Dialogs.py
    M fofix/game/Lobby.py
    M fofix/game/MainMenu.py
    M fofix/game/Menu.py
    M fofix/game/Song.py
    M fofix/tests/DrawingTest.py
    M fofix/tests/FontTest.py

  Log Message:
  -----------
  Simplify condition statements

PEP 8: do not compare vars to True or False and use is (not) for None.


  Commit: d337de84c910ef9070fce6e9a42a58cd0f193858
      https://github.com/fofix/fofix/commit/d337de84c910ef9070fce6e9a42a58cd0f193858
  Author: François Magimel <francois.magimel at etu.enseeiht.fr>
  Date:   2015-07-11 (Sat, 11 Jul 2015)

  Changed paths:
    M fofix/core/Cerealizer.py
    M fofix/core/Shader.py

  Log Message:
  -----------
  Use 'in' instead of .has_key()

The has_key method is deprecated in python 2 (W601) and removed in
python 3.


  Commit: 2e830e763e0bb234064d3485d86beb3582efbea9
      https://github.com/fofix/fofix/commit/2e830e763e0bb234064d3485d86beb3582efbea9
  Author: François Magimel <francois.magimel at etu.enseeiht.fr>
  Date:   2015-07-11 (Sat, 11 Jul 2015)

  Changed paths:
    M fofix/core/Language.py
    M fofix/core/LinedConfigParser.py
    M fofix/core/Microphone.py
    M fofix/core/Shader.py
    M fofix/core/Texture.py
    M fofix/core/Theme.py
    M fofix/core/VFS.py
    M fofix/core/Video.py
    M fofix/core/midi/EventDispatcher.py
    M fofix/core/midi/MidiFileParser.py
    M fofix/game/Song.py
    M pkg/MakeFoFiXInstaller.py
    M setup.py
    M win32/makedefs.py

  Log Message:
  -----------
  Use a more recent syntax to manage exceptions

Update the deprecated form of raising exception (W602) and the syntax
of 'except' (E901).


  Commit: 9c6fafcec26c73256cf0815914a3e6132217e7bf
      https://github.com/fofix/fofix/commit/9c6fafcec26c73256cf0815914a3e6132217e7bf
  Author: François Magimel <francois.magimel at etu.enseeiht.fr>
  Date:   2015-07-11 (Sat, 11 Jul 2015)

  Changed paths:
    M fofix/core/Collada.py
    M fofix/core/GameEngine.py
    M fofix/core/Video.py
    M fofix/core/View.py
    M fofix/tests/DrawingTest.py

  Log Message:
  -----------
  Remove semicolons


  Commit: d2204b0dfa41eeee7d0ee57d838934fa873321c2
      https://github.com/fofix/fofix/commit/d2204b0dfa41eeee7d0ee57d838934fa873321c2
  Author: François Magimel <francois.magimel at etu.enseeiht.fr>
  Date:   2015-07-11 (Sat, 11 Jul 2015)

  Changed paths:
    M fofix/core/Data.py
    M fofix/core/GameEngine.py
    M fofix/core/Image.py
    M fofix/core/Player.py
    M fofix/game/Credits.py
    M fofix/game/Dialogs.py
    M fofix/game/Lobby.py

  Log Message:
  -----------
  Remove useless and redundant backslashes


  Commit: e2e697b2f09ff60795a04d6545beeaeab8c880cf
      https://github.com/fofix/fofix/commit/e2e697b2f09ff60795a04d6545beeaeab8c880cf
  Author: François Magimel <francois.magimel at etu.enseeiht.fr>
  Date:   2015-07-11 (Sat, 11 Jul 2015)

  Changed paths:
    M fofix/core/Shader.py

  Log Message:
  -----------
  Remove a useless return


  Commit: 12d3cb09346fc325605f89fb5a7ed4aaa6808396
      https://github.com/fofix/fofix/commit/12d3cb09346fc325605f89fb5a7ed4aaa6808396
  Author: Matthew Sitton <mdsitton at users.noreply.github.com>
  Date:   2015-07-11 (Sat, 11 Jul 2015)

  Changed paths:
    M data/themes/MegaLight/CustomTheme.py
    M fofix/core/Cerealizer.py
    M fofix/core/Collada.py
    M fofix/core/Config.py
    M fofix/core/Data.py
    M fofix/core/GameEngine.py
    M fofix/core/Image.py
    M fofix/core/Input.py
    M fofix/core/Language.py
    M fofix/core/LinedConfigParser.py
    M fofix/core/Microphone.py
    M fofix/core/Player.py
    M fofix/core/Resource.py
    M fofix/core/Settings.py
    M fofix/core/Shader.py
    M fofix/core/Texture.py
    M fofix/core/Theme.py
    M fofix/core/VFS.py
    M fofix/core/Video.py
    M fofix/core/View.py
    M fofix/core/midi/EventDispatcher.py
    M fofix/core/midi/MidiFileParser.py
    M fofix/game/Credits.py
    M fofix/game/Dialogs.py
    M fofix/game/Lobby.py
    M fofix/game/MainMenu.py
    M fofix/game/Menu.py
    M fofix/game/Song.py
    M fofix/tests/DrawingTest.py
    M fofix/tests/FontTest.py
    M pkg/MakeFoFiXInstaller.py
    M setup.py
    M win32/makedefs.py

  Log Message:
  -----------
  Merge pull request #34 from Linkid/cleanup

Cleanup


Compare: https://github.com/fofix/fofix/compare/3fe0f9388473...12d3cb09346f


More information about the fofix-commits mailing list