BlendPath.__repr__ implemented

This commit is contained in:
Sybren A. Stüvel 2019-01-02 12:46:33 +01:00
parent 19216cb12e
commit 0e392f27c9

View File

@ -71,6 +71,9 @@ class BlendPath(bytes):
"""
return self.decode('utf8', errors='replace')
def __repr__(self) -> str:
return 'BlendPath(%s)' % super().__repr__()
def __truediv__(self, subpath: bytes):
"""Slash notation like pathlib.Path."""
sub = BlendPath(subpath)