OpenMods / OpenPeripheral

https://openmods.info
MIT License
67 stars 25 forks source link

Updated code #101

Closed EngineerCoding closed 10 years ago

EngineerCoding commented 10 years ago

This commmit added some better practises for this program. Such as localizing variables, it's sure is important. Otherwise I can hack into your program and let it error out, this way you are sure that never will happen. I also changed some string.lower(str) to str:lower() since it's shorter, no real advantage there.

Vexatos commented 10 years ago

Uhm, why would you try to hack into a documentation script?

EngineerCoding commented 10 years ago

Honestly, I dont know why. But using global variables can go very, very wrong if used very wrong. In this case it is not, but localizing variables is a better habit in general