X-Git-Url: https://code.grnet.gr/git/snf-image-creator/blobdiff_plain/b0376b3fa9916be57a7847467e7f1ac42705d25b..17649dd681e2d2f1c98ca8764cc77043740c9e97:/image_creator/gpt.py diff --git a/image_creator/gpt.py b/image_creator/gpt.py index 98f7cc8..82ae09e 100644 --- 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 @@ -31,6 +34,8 @@ # 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 @@ -42,9 +47,11 @@ BLOCKSIZE = 512 class MBR(object): """Represents a Master Boot Record.""" class Partition(object): + """Represents a partition entry in MBR""" format = "