Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-image-creator
Commits
35b13de5
Commit
35b13de5
authored
May 20, 2013
by
Nikos Skalkotos
Browse files
Fix minor pep8 errors
parent
39b0429a
Changes
3
Hide whitespace changes
Inline
Side-by-side
image_creator/bundle_volume.py
View file @
35b13de5
...
...
@@ -413,7 +413,7 @@ class BundleVolume(object):
mopts
=
filter
(
lambda
p
:
p
.
startswith
(
'Default mount options:'
),
tune2fs
(
'-l'
,
orig_dev
[
i
]).
splitlines
()
)[
0
].
split
(
':'
)[
1
].
strip
().
split
()
)[
0
].
split
(
':'
)[
1
].
strip
().
split
()
if
not
(
len
(
mopts
)
==
1
and
mopts
[
0
]
==
'(none)'
):
for
opt
in
mopts
:
...
...
image_creator/dialog_menu.py
View file @
35b13de5
...
...
@@ -557,11 +557,13 @@ def sysprep(session):
err_msg
=
\
"Unable to execute the system preparation tasks."
if
not
image
.
mounted
:
d
.
msgbox
(
"%s Couldn't mount the media."
%
err_msg
,
d
.
msgbox
(
"%s Couldn't mount the media."
%
err_msg
,
title
=
"System Preperation"
,
width
=
SMALL_WIDTH
)
return
elif
image
.
mounted_ro
:
d
.
msgbox
(
"%s Couldn't mount the media read-write."
d
.
msgbox
(
"%s Couldn't mount the media read-write."
%
err_msg
,
title
=
"System Preperation"
,
width
=
SMALL_WIDTH
)
return
...
...
image_creator/gpt.py
View file @
35b13de5
...
...
@@ -216,7 +216,7 @@ class GPTPartitionTable(object):
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
+
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment