def has_ns(stmt):
   with temporary_file(binary_mode=False) as fp:
     fp.write(stmt)
     fp.flush()
     return declares_namespace_package(fp.name)
Exemple #2
0
 def has_ns(stmt):
     with temporary_file(binary_mode=False) as fp:
         fp.write(stmt)
         fp.flush()
         return declares_namespace_package(fp.name)