Change swig interface files to use PythonDataObjects.

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

No files matched your search

@@ -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