tests/test-demandimport.py
branchstable
changeset 23643 2205d00b6d2b
parent 21025 54af51c18c4c
child 27535 0d0f4070f6d7
equal deleted inserted replaced
23619:70afc58c32d3 23643:2205d00b6d2b
     1 from mercurial import demandimport
     1 from mercurial import demandimport
     2 demandimport.enable()
     2 demandimport.enable()
       
     3 
       
     4 import os
       
     5 if os.name != 'nt':
       
     6     try:
       
     7         import distutils.msvc9compiler
       
     8         print ('distutils.msvc9compiler needs to be an immediate '
       
     9                'importerror on non-windows platforms')
       
    10         distutils.msvc9compiler
       
    11     except ImportError:
       
    12         pass
     3 
    13 
     4 import re
    14 import re
     5 
    15 
     6 rsub = re.sub
    16 rsub = re.sub
     7 def f(obj):
    17 def f(obj):