eric6/DebugClients/Python/coverage/optional.py

changeset 7975
7d493839a8fc
parent 7427
362cd1b6f81a
equal deleted inserted replaced
7974:f425b578ede7 7975:7d493839a8fc
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