Group :: Development/Python3
RPM: python3-module-os-vif
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: os-vif_allow_external_import.patch
Download
Download
diff --git a/os-vif/os_vif/internal/__init__.py b/os-vif/os_vif/internal/__init__.py
index 4cb3fd1..94e731d 100644
--- a/os-vif/os_vif/internal/__init__.py
+++ b/os-vif/os_vif/internal/__init__.py
@@ -9,17 +9,3 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-
-import inspect
-from os import path
-
-from os_vif import exception
-
-os_vif_root = path.dirname(path.dirname(path.dirname(__file__)))
-frames_info = inspect.getouterframes(inspect.currentframe())
-for frame_info in frames_info[1:]:
- importer_filename = inspect.getframeinfo(frame_info[0]).filename
- if os_vif_root in importer_filename:
- break
-else:
- raise exception.ExternalImport()