Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/mwlib/caller.py
diff options
context:
space:
mode:
Diffstat (limited to 'mwlib/caller.py')
-rwxr-xr-xmwlib/caller.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/mwlib/caller.py b/mwlib/caller.py
deleted file mode 100755
index 583a123..0000000
--- a/mwlib/caller.py
+++ /dev/null
@@ -1,20 +0,0 @@
-#! /usr/bin/env python
-
-# Copyright (c) 2007-2008 PediaPress GmbH
-# See README.txt for additional licensing information.
-
-import sys
-import os
-
-def caller(n=2):
- """return caller as string"""
- f = sys._getframe(n)
- return "%s:%s" % (f.f_code.co_filename, f.f_lineno)
-
-def short(n=2):
- """return caller as string"""
- f = sys._getframe(n)
- return "%s:%s" % (os.path.basename(f.f_code.co_filename), f.f_lineno)
-
-def callerframe(n=2):
- return sys._getframe(n)