这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@weidenba
Copy link
Contributor

No description provided.

@codecov-io
Copy link

codecov-io commented Feb 11, 2019

Codecov Report

Merging #213 into master will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #213      +/-   ##
==========================================
+ Coverage   95.71%   95.76%   +0.04%     
==========================================
  Files         339      345       +6     
  Lines       17512    17699     +187     
==========================================
+ Hits        16762    16949     +187     
  Misses        750      750
Impacted Files Coverage Δ
src/plugins/unpacking/hp/test/test_pjl_helper.py 100% <100%> (ø)
...rc/plugins/unpacking/hp/test/test_update_stream.py 100% <100%> (ø)
src/plugins/unpacking/hp/internal/pjl_helper.py 100% <100%> (ø)
src/plugins/unpacking/hp/code/pjl.py 100% <100%> (ø)
src/plugins/unpacking/hp/test/test_pjl.py 100% <100%> (ø)
src/plugins/unpacking/hp/code/update_stream.py 100% <100%> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update acdc0f1...f54804d. Read the comment docs.

@weidenba weidenba requested a review from jstucke February 12, 2019 13:21

from common_helper_files import get_binary_from_file

INTERNAL_DIR = Path(Path(__file__).parent.parent, 'internal')
Copy link
Collaborator

Choose a reason for hiding this comment

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

Creating multiple Path objects is not necessary. You can also use the / operator:
INTERNAL_DIR = Path(__file__).parent.parent / 'internal'


def get_pjl_commands(input_data):
pjl_instructions = []
tmp = list(re.finditer(b'@PJL [ =.!,?\w]+', input_data))
Copy link
Collaborator

Choose a reason for hiding this comment

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

DeprecationWarning: invalid escape sequence \w
should probably be a raw string rb'...'



def _get_name_of_upgrade(raw_binary, upgrade_command):
tmp = re.search(b'\xa8\x01([\w ]+) [\w ]+', raw_binary[upgrade_command['end_offset']:upgrade_command['end_offset'] + NAME_FIELD_MAX])
Copy link
Collaborator

Choose a reason for hiding this comment

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

see above



def _get_type_and_value(raw_command):
tmp = re.search(b'@PJL ([=\w]+) ?([ =.!,?\w]+)?', raw_command)
Copy link
Collaborator

Choose a reason for hiding this comment

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

see above

@weidenba
Copy link
Contributor Author

@jstucke jstucke merged commit 044a906 into master Feb 13, 2019
@dorpvom dorpvom deleted the SD-269_HP_Unpacker branch February 13, 2019 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants