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

support on python3 #3

Merged
merged 6 commits into from Oct 16, 2014
Merged

support on python3 #3

merged 6 commits into from Oct 16, 2014

Conversation

Tengfei1010
Copy link
Contributor

support on python3.4

oldj added a commit that referenced this pull request Oct 16, 2014
support on python3 by tutengfei.
@oldj oldj merged commit 6201d74 into oldj:master Oct 16, 2014
assert type(width) in (int, long, float)
assert type(height) in (int, long, float)
assert type(width) in (int, int, float)
assert type(height) in (int, int, float)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

诶~~这样 Python 2 会不会有问题?可以用 six.integer_types

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是有问题。不过很少有 Pull Request,所以先接受,再修改。XD
不过用six的话,会让这个库多一个依赖,似乎也最好避免...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

多谢!还有一个地方,base背景的地方,判断路径有Unicode,python3使用时也会有问题,稍后再提交!

发自我的 iPad

在 2014年10月19日,19:05,oldj notifications@github.com 写道:

In pyheatmap/heatmap.py:

@@ -30,8 +30,8 @@ def init(self,

     assert type(data) in (list, tuple)
     assert base is None or os.path.isfile(base)
  •    assert type(width) in (int, long, float)
    
  •    assert type(height) in (int, long, float)
    
  •    assert type(width) in (int, int, float)
    
  •    assert type(height) in (int, int, float)
    
    是有问题。不过很少有 Pull Request,所以先接受,再修改。XD
    不过用six的话,会让这个库多一个依赖,似乎也最好避免...


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants