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 (26 lines) | stat: -rw-r--r-- 678 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
23
24
25
26
"""Doc string"""
from something import anythin
from anything import something
_tr = Translator("Orange", "biolab.si", "Orange")
del Translator

import os

class A:
    '''Doc string'''

    a = "A class attribute"

    def f(self, x=_tr.e(_tr.c(2, "default"))):
        "Doc string"

        t = os.listdir(_tr.e(_tr.c(3, "some/directory")))
        for x in t:
            print(_tr.e(_tr.c(4, f"File {x}")))
            print(_tr.e(_tr.c(5, f'Not file {x + ".bak"}')))
            if x.endswith(_tr.e(_tr.c(6, f"""{"nonsense"}"""))):
                return x

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