"Fossies" - the Fresh Open Source Software Archive

Member "cloc-1.82/tests/inputs/issues/375/docstring.py" (3 May 2019, 526 Bytes) of package /linux/privat/cloc-1.82.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 """
    2 This is a docstring.
    3 """
    4 
    5 def abc(d,
    6         a11):
    7     ''' this is a docstring '''
    8     d = 2
    9     a = """
   10     this is not
   11     a docstring
   12     """
   13     def xyz(d):
   14         """
   15         this is a docstring
   16         """
   17         x = 1
   18         a = """ this is not a docstring
   19         """
   20 
   21 class Abc():
   22     ''' this is a docstring '''
   23     d = 2
   24     a = """
   25     this is not
   26     a docstring
   27     """
   28     def Xyz(d):
   29         """
   30         this is a docstring
   31         """
   32         x = 1
   33         a = """
   34         this is not a docstring """
   35