init.py warn is deprecated, using warning
loggin.warn is changed to loggin.warning
This commit is contained in:
		| @@ -220,16 +220,16 @@ class OfflineImap: | |||||||
|         if options.profiledir: |         if options.profiledir: | ||||||
|             if not options.singlethreading: |             if not options.singlethreading: | ||||||
|                 # TODO, make use of chosen ui for logging |                 # TODO, make use of chosen ui for logging | ||||||
|                 logging.warn("Profile mode: Forcing to singlethreaded.") |                 logging.warning("Profile mode: Forcing to singlethreaded.") | ||||||
|                 options.singlethreading = True |                 options.singlethreading = True | ||||||
|             if os.path.exists(options.profiledir): |             if os.path.exists(options.profiledir): | ||||||
|                 # TODO, make use of chosen ui for logging |                 # TODO, make use of chosen ui for logging | ||||||
|                 logging.warn("Profile mode: Directory '%s' already exists!" % |                 logging.warning("Profile mode: Directory '%s' already exists!" % | ||||||
|                                 options.profiledir) |                                 options.profiledir) | ||||||
|             else: |             else: | ||||||
|                 os.mkdir(options.profiledir) |                 os.mkdir(options.profiledir) | ||||||
|             # TODO, make use of chosen ui for logging |             # TODO, make use of chosen ui for logging | ||||||
|             logging.warn("Profile mode: Potentially large data will be " |             logging.warning("Profile mode: Potentially large data will be " | ||||||
|                             "created in '%s'" % options.profiledir) |                             "created in '%s'" % options.profiledir) | ||||||
|  |  | ||||||
|         # Override a config value. |         # Override a config value. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Rodolfo García Peñas (kix)
					Rodolfo García Peñas (kix)