mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 15:53:55 -04:00
dtoolutil: Rename Filename::__nonzero__() to __bool__()
This is the Python 3 convention (even though interrogate supports both)
This commit is contained in:
parent
e4ecb548bf
commit
fd5cab1a3f
@ -608,7 +608,7 @@ compare_to(const Filename &other) const {
|
||||
* instead.
|
||||
*/
|
||||
INLINE bool Filename::
|
||||
__nonzero__() const {
|
||||
__bool__() const {
|
||||
return !_filename.empty();
|
||||
}
|
||||
|
||||
|
@ -232,7 +232,7 @@ PUBLISHED:
|
||||
INLINE bool operator != (const std::string &other) const;
|
||||
INLINE bool operator < (const std::string &other) const;
|
||||
INLINE int compare_to(const Filename &other) const;
|
||||
INLINE bool __nonzero__() const;
|
||||
INLINE bool __bool__() const;
|
||||
int get_hash() const;
|
||||
|
||||
INLINE void output(std::ostream &out) const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user