Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isort produces inconsistent order with capitalization #472

Closed
rouge8 opened this issue Sep 20, 2016 · 1 comment
Closed

isort produces inconsistent order with capitalization #472

rouge8 opened this issue Sep 20, 2016 · 1 comment
Labels
bug Something isn't working

Comments

@rouge8
Copy link
Contributor

rouge8 commented Sep 20, 2016

Given:

from sqlalchemy.dialects.postgresql import ARRAY
from sqlalchemy.dialects.postgresql import array

Different values of PYTHONHASHSEED produce different results:

$ PYTHONHASHSEED=2856684698 isort --diff --force-single-line --force-sort-within-sections --dont-order-by-type t.py
--- /Users/andy/tmp/t.py:before 2016-09-19 18:36:23
+++ /Users/andy/tmp/t.py:after  2016-09-19 18:41:25.119757
@@ -1,2 +1,2 @@
+from sqlalchemy.dialects.postgresql import array
 from sqlalchemy.dialects.postgresql import ARRAY
-from sqlalchemy.dialects.postgresql import array

$ PYTHONHASHSEED=2856684699 isort --diff --force-single-line --force-sort-within-sections --dont-order-by-type t.py
@timothycrosley
Copy link
Member

Thanks for reporting this issue! Closing as it has now been resolved in develop and will make its way into the next release.

Thanks!

~Timothy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants