(self)
return "{0}{1}{2}/{3}".format(start, sections, end, str(self.file_pattern))
Implemented a function for __str__ and __repr__ to use, but
        which prevents infinite recursion when migrating to Python 3
Implemented a function for __str__ and __repr__ to use, but
        which prevents infinite recursion when migrating to Python 3
Implemented a function for __str__ and __repr__ to use but which prevents infinite recursion when migrating to Python 3
def _to_string(self):
        """Implemented a function for __str__ and __repr__ to use, but
        which prevents infinite recursion when migrating to Python 3"""
        if self.sections:
            start    = "/" if self.bound_start else "**/"
            sections = "/**/".join(str(section) for section in self.sections)
            end      = "" if self.bound_end else "/**"
        else:
            start    = ""
            sections = ""
            end      = "" if self.bound_end else "**"
        return "{0}{1}{2}/{3}".format(start, sections, end, str(self.file_pattern))
def _to_string ( self ) : if self . sections : start = "/" if self . bound_start else "**/" sections = "/**/" . join ( str ( section ) for section in self . sections ) end = "" if self . bound_end else "/**" else : start = "" sections = "" end = "" if self . bound_end else "**" return "{0}{1}{2}/{3}" . format ( start , sections , end , str ( self . file_pattern ) )