Skip to content

Commit

Permalink
Merge pull request #25 from cpcloud/ipython-8-17
Browse files Browse the repository at this point in the history
Add support for ipython 8.17
  • Loading branch information
ddelange authored Nov 1, 2023
2 parents 5a0603b + 788f269 commit 5aacf36
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,25 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [2.7, 3.4, 3.5, 3.6, 3.7, 3.8]
python-version: ['2.7', '3.x']

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
if: matrix.python-version != '2.7'
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python 2
if: matrix.python-version == '2.7'
run: |
sudo rm -f $(which python) $(which pip)
sudo apt-get install python2.7-dev
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
python2.7 get-pip.py
sudo ln -sf "$(which python2.7)" "$(dirname $(which python2.7))/python"
- name: Install dependencies
run: |
pip install -U pip setuptools wheel
Expand Down
4 changes: 2 additions & 2 deletions autotime/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ class LineWatcher(object):
"""
__slots__ = ['start_time', 'timestamp']

def start(self):
def start(self, *args, **kwargs):
self.timestamp = localtime()
self.start_time = monotonic()

def stop(self):
def stop(self, *args, **kwargs):
delta = monotonic() - self.start_time
print(
u'time: {} (started: {})'.format(
Expand Down

0 comments on commit 5aacf36

Please sign in to comment.