File: object_import.py

package info (click to toggle)
pyhamcrest 2.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 844 kB
  • sloc: python: 4,081; makefile: 114; sh: 15
file content (8 lines) | stat: -rw-r--r-- 162 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
try:

    class MyTest(object):
        pass

except TypeError:
    print("Object class defined at {0}".format(getattr(object, "__file__", "NOWHERE")))
    raise