Changeset a6b45f14c9843bd114b68a6b0c1e478cd2574e4a
- Timestamp:
- 05/17/10 10:10:45 (2 years ago)
- Author:
- Frederic Lepied <frederic.lepied@…>
- Children:
- 02a019ce37e905576ea50afe3477d127accbbcfd
- Parents:
- 338af1e36517b21d1a204bda11a8b488b575fb3c
- git-committer:
- Frederic Lepied <frederic.lepied@…> (05/17/10 10:10:45)
- Message:
-
simplify_ip: report IP addresses in hexa in uppercase to fit with tftp naming
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r73db309
|
ra6b45f1
|
|
| 2 | 2 | # Project : pxemngr |
| 3 | 3 | # File : common.py |
| 4 | | # Copyright : 2009 Splitted-Desktop Systems |
| | 4 | # Copyright : 2009-2010 Splitted-Desktop Systems |
| 5 | 5 | # Author : Frederic Lepied |
| 6 | 6 | # Created On : Sun Feb 1 19:03:58 2009 |
| … |
… |
|
| 97 | 97 | s = '' |
| 98 | 98 | for e in l: |
| 99 | | s = s + '%02x' % int(e) |
| | 99 | s = s + '%02X' % int(e) |
| 100 | 100 | return s |
| 101 | 101 | |