diff --git a/pefile.py b/pefile.py index f804678..5097f28 100644 --- a/pefile.py +++ b/pefile.py @@ -6428,7 +6428,7 @@ def get_rva_from_offset(self, offset): def get_offset_from_rva(self, rva): """Get the file offset corresponding to this RVA. - Given a RVA , this method will find the section where the + Given a RVA, this method will find the section where the data lies and return the offset within the file. """ @@ -8012,12 +8012,8 @@ def adjust_SectionAlignment(self, val, section_alignment, file_alignment): def main(): import sys - usage = """\ -pefile.py -pefile.py exports """ - if not sys.argv[1:]: - print(usage) + print('pefile.py ', 'pefile.py exports ', sep='\n') elif sys.argv[1] == "exports": if not sys.argv[2:]: sys.exit("error: required")