Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Sourcery refactored master branch #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions python/wiino.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
def u64_get_byte(value, shift):
byte = (value >> (shift * 8)) & 0xff
return byte
return (value >> (shift * 8)) & 0xff
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function u64_get_byte refactored with the following changes:


def u64_insert_byte(value, shift, byte):
mask = 0x00000000000000FF << (shift * 8)
Expand Down Expand Up @@ -93,17 +92,13 @@ def NWC24CheckUserID(nwc24_id):
return checkCRC(unscrambled) & 0xFFFFFFFF

def NWC24GetHollywoodID(nwc24_id):
hollywood = decodeWiiID(nwc24_id)[3]
return hollywood
return decodeWiiID(nwc24_id)[3]
Comment on lines -96 to +95
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function NWC24GetHollywoodID refactored with the following changes:


def NWC24GetIDCounter(nwc24_id):
id_ctr = decodeWiiID(nwc24_id)[4]
return id_ctr
return decodeWiiID(nwc24_id)[4]
Comment on lines -100 to +98
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function NWC24GetIDCounter refactored with the following changes:


def NWC24GetHardwareModel(nwc24_id):
hardware_model = decodeWiiID(nwc24_id)[1]
return hardware_model
return decodeWiiID(nwc24_id)[1]
Comment on lines -104 to +101
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function NWC24GetHardwareModel refactored with the following changes:


def NWC24GetAreaCode(nwc24_id):
area_code = decodeWiiID(nwc24_id)[2]
return area_code
return decodeWiiID(nwc24_id)[2]