def _adapt(iface, obj):
 for (wrapper_test, wrapper) in IMOUNTABLE_FILESYSTEM_ADAPTERS.items():
  if wrapper_test(obj):
   return wrapper(obj)

def _adapt ( iface , obj ) : for ( wrapper_test , wrapper ) in IMOUNTABLE_FILESYSTEM_ADAPTERS . items ( ) : if wrapper_test ( obj ) : return wrapper ( obj )
adapt the filesystem argument of mount to imountablefilesystem .