Debian Codegraph @

rpython/tool/nullpath.py

raw symbols SCIP
1 import py, os
2
3 class NullPyPathLocal(py.path.local):
4
5 def join(self, *args):
6 return self.__class__(py.path.local.join(self, *args))
7
8 def open(self, mode):
9 return open(os.devnull, mode)
10
11 def __repr__(self):
12 return py.path.local.__repr__(self) + ' [fake]'