eric6/DebugClients/Python/coverage/optional.py

branch
maintenance
changeset 8043
0acf98cd089a
parent 7975
7d493839a8fc
equal deleted inserted replaced
7991:866adc8c315b 8043:0acf98cd089a
11 11
12 The import will always succeed, but the value will be None if the module is 12 The import will always succeed, but the value will be None if the module is
13 unavailable. 13 unavailable.
14 14
15 Bad:: 15 Bad::
16
17 # MyModule.py
18 import unsure
19
20 def use_unsure():
21 unsure.something()
22
23 Also bad::
16 24
17 # MyModule.py 25 # MyModule.py
18 from coverage.optional import unsure 26 from coverage.optional import unsure
19 27
20 def use_unsure(): 28 def use_unsure():

eric ide

mercurial