Skip to content

Fix for Python2#22

Open
guillermogf wants to merge 7 commits intoMake-Magazine:masterfrom
guillermogf:master
Open

Fix for Python2#22
guillermogf wants to merge 7 commits intoMake-Magazine:masterfrom
guillermogf:master

Conversation

@guillermogf
Copy link
Copy Markdown

It really solves the issue that you tried to fix with last commit as the fallback argument is not present in Python2 (tested in 2.7.3 installed from stable repositories), as it was said in bug #13

As I am not very experienced in programming I'd like you to have a look at the work around I've used to resemble the fallback argument. What I tried to do there is to try to read the config and if it fails (because it isn't present or it is properly written) it keeps the defaults that are set at the beginning of the script.

I think I've made a bit of an unnecessary mess at the beginning because I didn't keep the finally clause, but it's just because I wrote this before your last commit was published :/ If you prefer it that way I can leave it as it was.

@guillermogf
Copy link
Copy Markdown
Author

I'm sorry, I didn't do those commits on the master branch on purpose. I think it is now as it was in the beginning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant