projects
/
snf-image-creator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Monkey-patch pythondialog to support form boxes
[snf-image-creator]
/
image_creator
/
gpt.py
diff --git
a/image_creator/gpt.py
b/image_creator/gpt.py
index
3be594e
..
82ae09e
100644
(file)
--- a/
image_creator/gpt.py
+++ b/
image_creator/gpt.py
@@
-1,3
+1,6
@@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+#
# Copyright 2012 GRNET S.A. All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# Copyright 2012 GRNET S.A. All rights reserved.
#
# Redistribution and use in source and binary forms, with or
@@
-31,6
+34,8
@@
# interpreted as representing official policies, either expressed
# or implied, of GRNET S.A.
# interpreted as representing official policies, either expressed
# or implied, of GRNET S.A.
+"""This module provides the code for handling GUID partition tables"""
+
import struct
import sys
import uuid
import struct
import sys
import uuid
@@
-216,7
+221,7
@@
class GPTPartitionTable(object):
return struct.calcsize(GPTPartitionTable.GPTHeader.format)
def __str__(self):
return struct.calcsize(GPTPartitionTable.GPTHeader.format)
def __str__(self):
- """Print a GPTHeader"""
+ """Print a GPTHeader"""
return "Signature: %s\n" % self.signature + \
"Revision: %r\n" % self.revision + \
"Header Size: %d\n" % self.hdr_size + \
return "Signature: %s\n" % self.signature + \
"Revision: %r\n" % self.revision + \
"Header Size: %d\n" % self.hdr_size + \