Skip to content

Commit

Permalink
Fix capitalization of class name
Browse files Browse the repository at this point in the history
  • Loading branch information
vanillajonathan committed Jul 25, 2017
1 parent d527d80 commit c17a196
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions me_cleaner.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class OutOfRegionException(Exception):
pass


class regionFile:
class RegionFile:
def __init__(self, f, region_start, region_end):
self.f = f
self.region_start = region_start
Expand Down Expand Up @@ -397,7 +397,7 @@ def relocate_partition(f, me_start, me_end, partition_header_offset,
shutil.copy(args.file, args.output)
f = open(args.output, "r+b")

mef = regionFile(f, me_start, me_end)
mef = RegionFile(f, me_start, me_end)

print("Removing extra partitions...")
mef.fill_range(me_start + 0x30, ftpr_offset, b"\xff")
Expand All @@ -415,7 +415,7 @@ def relocate_partition(f, me_start, me_end, partition_header_offset,

if args.descriptor:
print("Removing ME/TXE R/W access to the other flash regions...")
fdf = regionFile(f, fd_start, fd_end)
fdf = RegionFile(f, fd_start, fd_end)
fdf.write_to(fmba + 0x4, pack("<I", 0x04040000))

if me11:
Expand Down

0 comments on commit c17a196

Please sign in to comment.