Conditions | 1 |
Total Lines | 9 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | # -*- coding: utf-8 -*- |
||
31 | @staticmethod |
||
32 | def parse_checksum(xmlstr): |
||
33 | root = ElementTree.fromstring(xmlstr) |
||
34 | file = root.find("FILE_CHECKSUM_LIST").find("FILE") |
||
35 | file_addr = file.find("ADDRESS").text |
||
36 | sha1_enc_footer = file.find("ENCRYPT_FOOTER").text |
||
37 | sha1_footer = file.find("FOOTER").text |
||
38 | sha1_body = file.find("BODY").text |
||
39 | return file_addr, sha1_body, sha1_enc_footer, sha1_footer |
||
40 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.