Merge lp:~thibaultfevry/cardapio/no_subprocess_for_platform into lp:cardapio
Proposed by
Thibault Févry
Status: | Merged |
---|---|
Merge reported by: | Thiago Teixeira |
Merged at revision: | not available |
Proposed branch: | lp:~thibaultfevry/cardapio/no_subprocess_for_platform |
Merge into: | lp:cardapio |
Diff against target: |
28 lines (+3/-2) 1 file modified
src/cardapio.py (+3/-2) |
To merge this branch: | bzr merge lp:~thibaultfevry/cardapio/no_subprocess_for_platform |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Thiago Teixeira | Pending | ||
Review via email: mp+40378@code.launchpad.net |
Commit message
Use Python Std Library to get distribution name.
Description of the change
I looked at the code, and the fact that you used subprocess to get distribution name bogged me, so I made it use Python Std Library instead (Subproccess has more hidden bugs and many python programmers consider it "evil"). The function is documented here : http://
To post a comment you must log in.
I just want to add that I made an error with the indentation level (I use 4 spaces and not tabs), so you have to change this before it works. This is also untested in the programm itself but the results given by the 2 commands are the same.