Possibly irrelevant behaviour in storage/formats/__init__.py

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

 



While trying to find an unrelated bug

storage/formats/__init__.py

in def collect_device_format_classes():

        # make sure we're not importing this module
        if module_file.endswith(".py") and module_file != __file__:

should that be wrapped with os.path.basename() or does it simply not
matter in the slightest?

        # make sure we're not importing this module
        if module_file.endswith(".py") and module_file !=
os.path.basename(__file__):

Phil
=--=

_______________________________________________
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