Changeset 7752d1f in ammosreader for ammosreader/PPDWReader.py


Ignore:
Timestamp:
05/20/23 20:56:15 (2 years ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
AmmosSource, guix
Children:
f3b78e8
Parents:
4eb8a2f
Message:

mostly style changes after running pylint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ammosreader/PPDWReader.py

    r4eb8a2f r7752d1f  
    1 from pathlib import Path
    2 
    31from ammosreader.PDW import PDW
    42from ammosreader.PPDWContainer import PPDWContainer
     3from ammosreader import logger
     4
    55
    66class PPDWReader():
     7    """I read data from a file and return a PPDWContainer."""
    78
    89    def __init__(self, a_file):
     
    2021                assert len(current_bytes) == 32
    2122                if not current_bytes:
    22                     # print('End of file detected')
     23                    logger.info('End of file detected')
    2324                    break
    2425                if self.cursor + 32 >= len(self.content):
    25                     # print('Can not read all 32 bytes of next PDW. EOF')
     26                    logger.info('Can not read all 32 bytes of next PDW. EOF')
    2627                    break
    2728                self.container.add(PDW.from_bytes(current_bytes))
Note: See TracChangeset for help on using the changeset viewer.