summaryrefslogtreecommitdiff
path: root/isort/isort.py
diff options
context:
space:
mode:
Diffstat (limited to 'isort/isort.py')
-rw-r--r--isort/isort.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/isort/isort.py b/isort/isort.py
index 5b35b0d5..19bdceb2 100644
--- a/isort/isort.py
+++ b/isort/isort.py
@@ -302,7 +302,8 @@ class SortImports(object):
prefix = "B"
else:
prefix = "C"
- module_name = module_name.lower()
+ if not config['case_sensitive']:
+ module_name = module_name.lower()
if section_name is None or 'length_sort_' + str(section_name).lower() not in config:
length_sort = config['length_sort']
else: