File: __init__.py

package info (click to toggle)
python-trubar 0.3.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 716 kB
  • sloc: python: 2,968; sh: 375; makefile: 3; javascript: 1
file content (22 lines) | stat: -rw-r--r-- 450 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""Doc string"""

import os

class A:
    '''Doc string'''

    a = "A class attribute"

    def f(self, x="default"):
        "Doc string"

        t = os.listdir("some/directory")
        for x in t:
            print(f"File {x}")
            print(f'Not file {x + ".bak"}')
            if x.endswith(f"""{"nonsense"}"""):
                return x

if __name__ == "__main__":
    print("Please don't run this.")
    print('Import it, if you must.')