Skip to content

Commit

Permalink
now using from __future__ import absolute_import
Browse files Browse the repository at this point in the history
  • Loading branch information
madsbk committed May 2, 2017
1 parent 648f217 commit 8b77b4e
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 18 deletions.
11 changes: 6 additions & 5 deletions benchpress/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
- Use a visualizer such as `bp-cli` or `bp-chart` to visualize the results within the JSON file
"""
from __future__ import absolute_import
from pkg_resources import get_distribution, DistributionNotFound
import util
import visualizer
import suite_util
import argument_handling
import time_util
from . import util
from . import visualizer
from . import suite_util
from . import argument_handling
from . import time_util
from .benchpress import *

# Set the package version
Expand Down
1 change: 1 addition & 0 deletions benchpress/argument_handling.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import argparse

_parser = argparse.ArgumentParser(description='Runs a benchmark suite and stores the results in a JSON-file.')
Expand Down
5 changes: 3 additions & 2 deletions benchpress/benchpress.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import json
import os
import uuid
import tempfile
from argument_handling import args
import time_util
from .argument_handling import args
from . import time_util


def _check_cmd(cmd_list):
Expand Down
6 changes: 3 additions & 3 deletions benchpress/run.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# -*- coding: utf-8 -*-

from __future__ import absolute_import
import os
import json
from subprocess import Popen, PIPE
import argument_handling
from argument_handling import args
from . import argument_handling
from .argument_handling import args


class C:
Expand Down
2 changes: 1 addition & 1 deletion benchpress/suite_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Utilities for Generating Commands
---------------------------------
"""

from __future__ import absolute_import
import os
from os.path import join, realpath

Expand Down
2 changes: 1 addition & 1 deletion benchpress/visualizer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-

from __future__ import absolute_import
3 changes: 2 additions & 1 deletion benchpress/visualizer/bar_per_cmd.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import re
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import json
import numpy as np
from benchpress.visualizer import util
Expand Down
2 changes: 1 addition & 1 deletion benchpress/visualizer/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import absolute_import
import json
import re
from benchpress.visualizer import util
Expand Down
3 changes: 1 addition & 2 deletions benchpress/visualizer/cli_series.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-

from __future__ import absolute_import
import json
import re
from benchpress.visualizer import util
from benchpress import time_util

Expand Down
2 changes: 1 addition & 1 deletion benchpress/visualizer/raw.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import absolute_import
import json
from benchpress.visualizer import util

Expand Down
2 changes: 1 addition & 1 deletion benchpress/visualizer/util.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import absolute_import
import argparse
import re
import math
Expand Down

0 comments on commit 8b77b4e

Please sign in to comment.