kopia lustrzana https://github.com/jupyterhub/repo2docker
from traitlets import TraitError in utils.py
__TraitError__ is used on lines 259 and 266 but it is neither imported nor defined which will cause a __NameError__ to be raised instead of a __TraitError__. flake8 testing of https://github.com/jupyter/repo2docker on Python 3.6.3 $ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__ ``` ./repo2docker/utils.py:259:19: F821 undefined name 'TraitError' raise TraitError( ^ ./repo2docker/utils.py:266:19: F821 undefined name 'TraitError' raise TraitError( ^ 2 F821 undefined name 'TraitError' 2 ```pull/348/head
rodzic
5c263a927d
commit
b5988f83c1
|
@ -5,7 +5,7 @@ import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from traitlets import Integer
|
from traitlets import Integer, TraitError
|
||||||
|
|
||||||
|
|
||||||
def execute_cmd(cmd, capture=False, **kwargs):
|
def execute_cmd(cmd, capture=False, **kwargs):
|
||||||
|
|
Ładowanie…
Reference in New Issue