Skip to content

Commit

Permalink
added python 2.7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdelgrosso committed Dec 29, 2018
1 parent 7c4dc77 commit e0d9a1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: python
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7-dev" # 3.7 development branch
Expand Down
7 changes: 5 additions & 2 deletions leansim/workflow.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from __future__ import print_function

from time import sleep
import os
from .worker import Worker

import sys

class Workflow:

Expand Down Expand Up @@ -33,7 +35,8 @@ def process(self, work, verbose=False, sleep_time=0):
if verbose:
os.system('cls' if os.name == 'nt' else 'clear')
print(self)
print('Steps: {}'.format(steps), end='\n\n', flush=True)
print('Steps: {}'.format(steps), end='\n\n')
sys.stdout.flush()
if sleep_time:
sleep(sleep_time)
return steps
Expand Down

0 comments on commit e0d9a1f

Please sign in to comment.