Check for 'is None' not '== None'.
---
partedUtils.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/partedUtils.py b/partedUtils.py
index 7377148..9bae6e1 100644
--- a/partedUtils.py
+++ b/partedUtils.py
@@ -60,7 +60,7 @@ def get_partition_file_system_type(part):
"""
if part.fileSystem is None and part.getFlag(parted.PARTITION_PREP):
ptype = fsset.fileSystemTypeGet("PPC PReP Boot")
- elif part.fileSystem == None:
+ elif part.fileSystem is None:
return None
elif (part.getFlag(parted.PARTITION_BOOT) and
part.getSize(unit="MB") <= 1 and part.fileSystem.type == "hfs"):
--
1.6.1.3
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
|