mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
chg: removed whitespaces.
This commit is contained in:
parent
a82d5bf708
commit
1b61e01f0e
5 changed files with 11 additions and 11 deletions
|
@ -15,7 +15,7 @@ def main(argv):
|
||||||
if argc < 3:
|
if argc < 3:
|
||||||
print 'Usage:', argv[0], 'input.eml output.mfd'
|
print 'Usage:', argv[0], 'input.eml output.mfd'
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
with file(argv[1], "r") as file_inp, file(argv[2], "wb") as file_out:
|
with file(argv[1], "r") as file_inp, file(argv[2], "wb") as file_out:
|
||||||
for line in file_inp:
|
for line in file_inp:
|
||||||
line = line.rstrip('\n').rstrip('\r')
|
line = line.rstrip('\n').rstrip('\r')
|
||||||
|
|
|
@ -11,7 +11,7 @@ import pm3_eml2mfd, pm3_mfd2eml
|
||||||
class TestEmlMfd(unittest.TestCase):
|
class TestEmlMfd(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.tmpdir = mkdtemp()
|
self.tmpdir = mkdtemp()
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
rmtree(self.tmpdir)
|
rmtree(self.tmpdir)
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ def hex_c14n(inp):
|
||||||
"""
|
"""
|
||||||
Canonicalizes the input string by removing non-hexadecimal
|
Canonicalizes the input string by removing non-hexadecimal
|
||||||
characters and making everything uppercase
|
characters and making everything uppercase
|
||||||
"""
|
"""
|
||||||
return ''.join(c.upper() for c in inp if c in hexdigits)
|
return ''.join(c.upper() for c in inp if c in hexdigits)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
# findbits.py - find Binary, Octal, Decimal or Hex number in bitstream
|
# findbits.py - find Binary, Octal, Decimal or Hex number in bitstream
|
||||||
#
|
#
|
||||||
# Adam Laurie <adam@algroup.co.uk>
|
# Adam Laurie <adam@algroup.co.uk>
|
||||||
# http://rfidiot.org/
|
# http://rfidiot.org/
|
||||||
#
|
#
|
||||||
# This code is copyright (c) Adam Laurie, 2009, All rights reserved.
|
# This code is copyright (c) Adam Laurie, 2009, All rights reserved.
|
||||||
# For non-commercial use only, the following terms apply - for all other
|
# For non-commercial use only, the following terms apply - for all other
|
||||||
# uses, please contact the author:
|
# uses, please contact the author:
|
||||||
|
@ -77,7 +77,7 @@ def main():
|
||||||
print
|
print
|
||||||
os._exit(True)
|
os._exit(True)
|
||||||
|
|
||||||
bases= {
|
bases= {
|
||||||
2:'BINARY',
|
2:'BINARY',
|
||||||
8:'OCTAL',
|
8:'OCTAL',
|
||||||
10:'DECIMAL',
|
10:'DECIMAL',
|
||||||
|
|
|
@ -56,13 +56,13 @@ class TestFindBits(unittest.TestCase):
|
||||||
class OutputBuffer(object):
|
class OutputBuffer(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.clear_buffer()
|
self.clear_buffer()
|
||||||
|
|
||||||
def clear_buffer(self):
|
def clear_buffer(self):
|
||||||
self.content = ''
|
self.content = ''
|
||||||
|
|
||||||
def write(self, data):
|
def write(self, data):
|
||||||
self.content += data
|
self.content += data
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
|
@ -1,10 +1,10 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
# xorcheck.py - find xor values for 8-bit LRC
|
# xorcheck.py - find xor values for 8-bit LRC
|
||||||
#
|
#
|
||||||
# Adam Laurie <adam@algroup.co.uk>
|
# Adam Laurie <adam@algroup.co.uk>
|
||||||
# http://rfidiot.org/
|
# http://rfidiot.org/
|
||||||
#
|
#
|
||||||
# This code is copyright (c) Adam Laurie, 2009, All rights reserved.
|
# This code is copyright (c) Adam Laurie, 2009, All rights reserved.
|
||||||
# For non-commercial use only, the following terms apply - for all other
|
# For non-commercial use only, the following terms apply - for all other
|
||||||
# uses, please contact the author:
|
# uses, please contact the author:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue