diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-29 15:13:40 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-29 15:13:40 +0000 |
commit | 12ea4192cd69e4b77ca3c50a9efab250c7697714 (patch) | |
tree | 56e3fb93bee4b8d5d759f94ec5047c900ba22539 /tools/sort-headers.py | |
parent | 2e75ad88766d431a8fe3d131e2759ad7f97f3140 (diff) | |
download | chromium_src-12ea4192cd69e4b77ca3c50a9efab250c7697714.zip chromium_src-12ea4192cd69e4b77ca3c50a9efab250c7697714.tar.gz chromium_src-12ea4192cd69e4b77ca3c50a9efab250c7697714.tar.bz2 |
sort-headers.py: Do a case-insensitive sort instead.
Otherwise the diff reports things like this:
-#include <uxtheme.h>
#include <Vssym32.h>
+#include <uxtheme.h>
TEST=run ./tools/sort-headers.py, it should not report the above case.
R=thakis@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10446061
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139294 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/sort-headers.py')
-rwxr-xr-x | tools/sort-headers.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/sort-headers.py b/tools/sort-headers.py index 49ace80..a786822 100755 --- a/tools/sort-headers.py +++ b/tools/sort-headers.py @@ -37,6 +37,7 @@ def IncludeCompareKey(line): """Sorting comparator key used for comparing two #include lines. Returns the filename without the #include/#import prefix. """ + line = line.lower() for prefix in ('#include ', '#import '): if line.startswith(prefix): line = line[len(prefix):] |