Commit 8de7ba03 authored by Dominik Charousset's avatar Dominik Charousset

Remove unused imports

parent 035b22e2
......@@ -17,10 +17,9 @@
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
import os, sys, git, re, pathlib
import os, git, re, pathlib
# -- CAF-specific variables ---------------------------------------------------
......@@ -30,7 +29,7 @@ root_dir = conf_dir.parent.absolute()
# Fetch the CAF version.
with open(os.path.join(root_dir, "libcaf_core/caf/config.hpp")) as f:
match = re.search('^#define CAF_VERSION ([0-9]+)$', f.read(), re.MULTILINE)
if match == None:
if match is None:
raise RuntimeError("unable to locate CAF_VERSION string in config.hpp")
raw_version = int(match.group(1))
major = int(raw_version / 10000)
......
......@@ -6,7 +6,7 @@
# usage (read file): indent_trace_log.py FILENAME
# (read stdin): indent_trace_log.py -
import argparse, sys, os, fileinput, re
import argparse, sys, os, re
def is_entry(line):
return 'TRACE' in line and 'ENTRY' in line
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment