(f, header)
| 71 | |
| 72 | |
| 73 | def CheckXMLFile(f, header): |
| 74 | # Is f a file ? |
| 75 | if not os.path.isfile(f): |
| 76 | return False |
| 77 | |
| 78 | # Is f an XML file ? |
| 79 | try: |
| 80 | tree = et.parse(f) |
| 81 | except et.ParseError: |
| 82 | return False |
| 83 | |
| 84 | # Check the file header |
| 85 | return tree.getroot().tag.upper() == header.upper() |
| 86 | |
| 87 | |
| 88 | def CopyAircraftDef(script_path, sandbox): |
nothing calls this directly
no outgoing calls
no test coverage detected