Skip to content

Commit

Permalink
avoiding imports from inside code for better readability and to allow…
Browse files Browse the repository at this point in the history
… any import error to raise early.
  • Loading branch information
farirat authored Nov 7, 2023
1 parent b4f516e commit 8a41ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jasmin/protocols/cli/mtinterceptorm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import re
import inspect
import pickle
import urllib.parse, urllib.request, urllib.error
from jasmin.protocols.cli.managers import PersistableManager, Session
from jasmin.protocols.cli.filtersm import MTFILTERS
from jasmin.routing.jasminApi import MTInterceptorScript
Expand Down Expand Up @@ -133,7 +134,6 @@ def parse_args_and_call_with_instance(self, *args, **kwargs):
stype, script_path = validate_typed_script(arg)

if stype == 'python3':
import urllib.parse, urllib.request, urllib.error
pathscheme = urllib.parse.urlparse(script_path).scheme
if pathscheme == '':
# Open file and get its content
Expand Down

0 comments on commit 8a41ef3

Please sign in to comment.