[PATCH 47/47] Check for 'is None' not '== None'.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux