Skip to content

Commit

Permalink
moved stylize to task
Browse files Browse the repository at this point in the history
  • Loading branch information
roll committed Jan 27, 2015
1 parent 8dc73c4 commit 1956958
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions run/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from .program import program
from .settings import settings
from .task import (Task, Logger, Event, TaskEvent, CallTaskEvent,
task, depend, require, trigger, hide, skip)
from .utils import stylize
task, depend, require, trigger, hide, skip, stylize)
from .var import Var, var
version = '0.46.2' # REPLACE: version = '{{ version }}'
3 changes: 1 addition & 2 deletions run/module/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
from collections import OrderedDict
from ..helpers import cachedproperty, import_object
from ..settings import settings
from ..task import Task, Prototype, ConvertError, convert
from ..utils import stylize
from ..task import Task, Prototype, ConvertError, convert, stylize
from .exception import GetattrError


Expand Down
1 change: 1 addition & 0 deletions run/task/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
from .require import require
from .event import Event, TaskEvent, CallTaskEvent
from .skip import skip
from .stylize import stylize
from .task import Task
from .trigger import trigger
2 changes: 1 addition & 1 deletion run/task/logger.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logging
from ..helpers import pack
from ..utils import stylize
from .event import CallTaskEvent
from .stylize import stylize


class Logger:
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion run/utils/__init__.py

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import unittest
from functools import partial
from importlib import import_module
component = import_module('run.utils.stylize')
component = import_module('run.task.stylize')


class stylize_Test(unittest.TestCase):
Expand Down
Empty file removed tests/component/utils/__init__.py
Empty file.

0 comments on commit 1956958

Please sign in to comment.