Skip to content

Commit

Permalink
clean for merge into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Murton committed Jun 5, 2019
1 parent 4c5d637 commit bb2ae94
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Core/automation/lib/python/core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# This check for the existence of 'scope' and verifying it is not a mock.Mock
# instance are needed for Sphinx autodoc because it tries to search all attrs
import mock
from core import jsr223
try:
# if this check fails we assume we are in Jython
# if this check passes we assume we are in Python building docs
# this is needed to avoid errors with autodoc iterating over all methods
# and erroring with the attribute-getter below
import mock

if hasattr(jsr223, 'scope') and not isinstance(jsr223.scope, mock.Mock):
except:

from core.jsr223.scope import items

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit bb2ae94

Please sign in to comment.