Commit 7235ef9c authored by Tom Niget's avatar Tom Niget

Fix isspace implementation

parent 9e524384
......@@ -49,7 +49,7 @@ public:
})
METHOD(bool, isspace, (Self self), {
return std::all_of(self.begin(), self.end(), isspace);
return self.find_first_not_of(' ') == std::string::npos;
})
METHOD(auto, py_contains, (Self self, const std::string &x), {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment