aboutsummaryrefslogtreecommitdiff
path: root/catapult/telemetry/third_party/modulegraph/modulegraph_tests/testpkg-compatmodule/pkg/api2.py
diff options
context:
space:
mode:
Diffstat (limited to 'catapult/telemetry/third_party/modulegraph/modulegraph_tests/testpkg-compatmodule/pkg/api2.py')
-rw-r--r--catapult/telemetry/third_party/modulegraph/modulegraph_tests/testpkg-compatmodule/pkg/api2.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/catapult/telemetry/third_party/modulegraph/modulegraph_tests/testpkg-compatmodule/pkg/api2.py b/catapult/telemetry/third_party/modulegraph/modulegraph_tests/testpkg-compatmodule/pkg/api2.py
new file mode 100644
index 00000000..4f5be0bb
--- /dev/null
+++ b/catapult/telemetry/third_party/modulegraph/modulegraph_tests/testpkg-compatmodule/pkg/api2.py
@@ -0,0 +1,11 @@
+import urllib2
+
+def div(a, b):
+ try:
+ return a/b
+
+ except ZeroDivisionError, exc:
+ return None
+
+class MyClass (object):
+ pass