Change swig interface files to use PythonDataObjects.

llvm-svn: 250303
This commit is contained in:
Zachary Turner
2015-10-14 16:59:32 +00:00
parent a5b9ad22b3
commit 60c24f70fe
5 changed files with 101 additions and 87 deletions

View File

@@ -478,7 +478,7 @@ PyFile_FromFile_Const(FILE *fp, const char *mode)
int fd = fileno(fp);
#endif
return PyRef(PyRefType::Owned,
return PythonObject(PyRefType::Owned,
PyFile_FromFd(fd, nullptr, cmode, -1, nullptr, "ignore", nullptr, 0));
#else
// Read through the Python source, doesn't seem to modify these strings