marcoabreu closed pull request #13771: Scope requests so it's not needed for 
dev_menu
URL: https://github.com/apache/incubator-mxnet/pull/13771
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/ci/util.py b/ci/util.py
index 4d68b57a3af..9a8d52eb171 100644
--- a/ci/util.py
+++ b/ci/util.py
@@ -18,7 +18,6 @@
 import os
 import contextlib
 import logging
-import requests
 
 def get_mxnet_root() -> str:
     curpath = os.path.abspath(os.path.dirname(__file__))
@@ -89,6 +88,7 @@ def under_ci() -> bool:
 
 
 def ec2_instance_id_hostname() -> str:
+    import requests
     if under_ci():
         result = []
         try:


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to