Skip to content

Commit

Permalink
Python 3.7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
piannucci committed Aug 9, 2018
1 parent 4208638 commit 19fcdf3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
5 changes: 0 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@
import subprocess
import os


if not sys.version_info[:2] in [(2, 6), (2, 7), (3, 4)]:
raise RuntimeError("Python version 2.6, 2.7, or 3.4 required.")


CLASSIFIERS = """\
Development Status :: 4 - Beta
Intended Audience :: Science/Research
Expand Down
5 changes: 0 additions & 5 deletions weave/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@

import sys


if not sys.version_info[:2] in [(2, 6), (2, 7), (3, 4)]:
raise RuntimeError("Weave only supports Python 2.6, 2.7, and 3.4")


from weave.version import version as __version__

from .blitz_tools import blitz, BlitzWarning
Expand Down
4 changes: 2 additions & 2 deletions weave/scxx/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ class object
fail(PyExc_TypeError, "cannot convert value to std::string");
return std::string(PyUnicode_AsUTF8(_obj));
};
operator char* () const {
operator const char* () const {
if (!PyUnicode_Check(_obj))
fail(PyExc_TypeError, "cannot convert value to char*");
fail(PyExc_TypeError, "cannot convert value to const char*");
return PyUnicode_AsUTF8(_obj);
};

Expand Down

0 comments on commit 19fcdf3

Please sign in to comment.