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

Normalize all line endings to LF #100

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 38 additions & 38 deletions src/wafer_map/__init__.py
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
Loading
Loading