-
-
Save woss/8d2e08069139d43b93a99b96032a255c to your computer and use it in GitHub Desktop.
Revisions
-
michaelBenin created this gist
Jul 20, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ requirements_file = 'base.pip' requirements = open(requirements_file, 'r') content = requirements.read().splitlines() content = list(set(content)) content.sort(key=lambda y: y.lower()) content = '\n'.join(content) file = open('sorted_'+requirements_file, 'w') file.write(content) file.close()