Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37752394
en ru br
ALT Linux repos
S:3.2.0-alt1

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


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()
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin