Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/a/u/AutoCopyright-HEAD/InsertCopyrightCommand.py   AutoCopyright(Download)
 
        if len(lineComments) == 0 and len(blockComments) == 0:
            self.commentType = AutoCopyright.constants.COMMENT_TYPE_LINE
            self.firstLine = u"# "
            self.middleLine = u"# "
            self.lastLine = u"# "
        elif lang in overrideLanguages or (len(blockComments) == 0 and len(lineComments) > 0):
            self.commentType = AutoCopyright.constants.COMMENT_TYPE_LINE
    def __build_comment(self, text):
        """Builds a comment and puts the given text into it."""
        self.get_comment_settings()
        if self.commentType == AutoCopyright.constants.COMMENT_TYPE_LINE:
            return self.__build_line_comment(text)