diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-05-15 12:18:56 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-05-15 12:18:56 +0200 |
| commit | 049fdf160fbe176c5ea753499b9e7885b3ebf302 (patch) | |
| tree | 8abbfa352fbdad0b90a0df609b08bec501a63527 /ishtar_common/utils.py | |
| parent | e6436caf8edb39a3538e90fbed7c9a41396400d2 (diff) | |
| download | Ishtar-049fdf160fbe176c5ea753499b9e7885b3ebf302.tar.bz2 Ishtar-049fdf160fbe176c5ea753499b9e7885b3ebf302.zip | |
Data importer: manage concat of M2M (many columns)
Diffstat (limited to 'ishtar_common/utils.py')
| -rw-r--r-- | ishtar_common/utils.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ishtar_common/utils.py b/ishtar_common/utils.py index 401f88f82..4f48cb08b 100644 --- a/ishtar_common/utils.py +++ b/ishtar_common/utils.py @@ -21,6 +21,7 @@ from csv import QUOTE_ALL import datetime from functools import wraps from itertools import chain +from inspect import currentframe, getframeinfo import hashlib import os import random @@ -60,6 +61,11 @@ def dict_to_tuple(dct): return tuple(values) +def debug_line_no(): + cf = currentframe() + return currentframe().f_back.f_lineno + + class BColors: """ Bash colors. Don't forget to finish your colored string with ENDC. |
