Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
Removed numpy dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
zrzka committed Oct 1, 2017
1 parent 1eed5b7 commit 09fe96e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions blackmamba/ide/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import editor
from blackmamba.config import get_config_value
import numpy


def get_line_count():
Expand Down Expand Up @@ -52,7 +51,7 @@ def scroll_to_line(line_number, relative=False):
if current_line is None or line_count is None:
return

line_number = numpy.clip(current_line + line_number, 1, line_count)
line_number = max(min(current_line + line_number, line_count), 1)

# https://github.com/omz/Pythonista-Issues/issues/365
start = 0
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
numpy
jedi
flake8
mock
Expand Down

0 comments on commit 09fe96e

Please sign in to comment.