From 1e935db4b7c62e4f857c9f067bc797d6ea264901 Mon Sep 17 00:00:00 2001 From: micbou Date: Wed, 5 Jul 2017 01:00:33 +0200 Subject: [PATCH] Fix unicode warning when unloading buffer on Python 2 --- python/ycm/youcompleteme.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/ycm/youcompleteme.py b/python/ycm/youcompleteme.py index f2087d81..cb7dcc5e 100644 --- a/python/ycm/youcompleteme.py +++ b/python/ycm/youcompleteme.py @@ -374,7 +374,9 @@ class YouCompleteMe( object ): def OnBufferUnload( self, deleted_buffer_file ): - SendEventNotificationAsync( 'BufferUnload', filepath = deleted_buffer_file ) + SendEventNotificationAsync( + 'BufferUnload', + filepath = utils.ToUnicode( deleted_buffer_file ) ) def OnBufferVisit( self ):