-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Normalize all line endings to LF (#100)
- Loading branch information
1 parent
226bf46
commit 61c3271
Showing
12 changed files
with
3,180 additions
and
3,180 deletions.
There are no files selected for viewing
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
__init__ for wafer_map. | ||
Determines the python version and monkeypatches wx.Colour. | ||
""" | ||
import os | ||
import sys | ||
|
||
|
||
### Constants ############################################################### | ||
# __all__ = ['wm_app', 'wm_constants', 'wm_core', 'wm_frame', 'wm_info', | ||
# 'wm_legend', 'wm_utils'] | ||
|
||
|
||
if sys.version_info < (3,): | ||
PY2 = True | ||
elif sys.version_info < (2, 6): | ||
raise RuntimeError("Only Python >= 2.7 is supported.") | ||
else: | ||
PY2 = False | ||
|
||
|
||
# if we're building docs, don't try and import or monkeypatch wxPython. | ||
if os.getenv("READTHEDOCS", "False") == "True": | ||
pass | ||
else: | ||
# Fix hashing for wx.Colour | ||
# See https://groups.google.com/forum/#!topic/wxpython-dev/NLd4CZv9rII | ||
import wx | ||
|
||
ok = getattr(wx.Colour, "__hash__") | ||
if ok is None: | ||
|
||
def _Colour___hash(self): | ||
return hash(tuple(self.Get())) | ||
|
||
wx.Colour.__hash__ = _Colour___hash | ||
# -*- coding: utf-8 -*- | ||
""" | ||
__init__ for wafer_map. | ||
Determines the python version and monkeypatches wx.Colour. | ||
""" | ||
import os | ||
import sys | ||
|
||
|
||
### Constants ############################################################### | ||
# __all__ = ['wm_app', 'wm_constants', 'wm_core', 'wm_frame', 'wm_info', | ||
# 'wm_legend', 'wm_utils'] | ||
|
||
|
||
if sys.version_info < (3,): | ||
PY2 = True | ||
elif sys.version_info < (2, 6): | ||
raise RuntimeError("Only Python >= 2.7 is supported.") | ||
else: | ||
PY2 = False | ||
|
||
|
||
# if we're building docs, don't try and import or monkeypatch wxPython. | ||
if os.getenv("READTHEDOCS", "False") == "True": | ||
pass | ||
else: | ||
# Fix hashing for wx.Colour | ||
# See https://groups.google.com/forum/#!topic/wxpython-dev/NLd4CZv9rII | ||
import wx | ||
|
||
ok = getattr(wx.Colour, "__hash__") | ||
if ok is None: | ||
|
||
def _Colour___hash(self): | ||
return hash(tuple(self.Get())) | ||
|
||
wx.Colour.__hash__ = _Colour___hash |
Oops, something went wrong.