def _indexOfNextNWSChar (self) :
        length=len(self.buffer_)
        cur = self.current_
        if (cur==length) : return cur
        # Look for WS or comments that start with #
        comment_mode = False
        while cur<len :
            if (comment_mode) :
                if (self.buffer_[cur]=='\n') : comment_mode = False
                continue
            else :
                if (self.buffer_[cur].isspace()) : continue
                elif (self.buffer_[cur]=='#') :
                    comment_mode = True
                    continue
                else :
                    break
        # All done
        return cur

  
    # Get a the next non-white character from input
dataset/ETHPy150Open redhat-imaging/imagefactory/imgfac/picklingtools/parsereader.py/StringReader._indexOfNextNWSChar/original