Skip to content

Commit

Permalink
Code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Valloric committed Jul 8, 2013
1 parent a011eb6 commit ddd0287
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/ycm/completers/general/filename_completer.py
Expand Up @@ -82,13 +82,13 @@ def ComputeCandidates( self, unused_query, start_column ):
# We do what GCC does for <> versus "":
# http://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html
include_current_file_dir = '<' not in include_match.group()
return GenerateCandidatesForPaths(
return _GenerateCandidatesForPaths(
self.GetPathsIncludeCase( path_dir, include_current_file_dir ) )

path_match = self._path_regex.search( line )
path_dir = os.path.expanduser( path_match.group() ) if path_match else ''

return GenerateCandidatesForPaths( GetPathsStandardCase( path_dir ) )
return _GenerateCandidatesForPaths( _GetPathsStandardCase( path_dir ) )


def GetPathsIncludeCase( self, path_dir, include_current_file_dir ):
Expand All @@ -110,7 +110,7 @@ def GetPathsIncludeCase( self, path_dir, include_current_file_dir ):
return sorted( set( paths ) )


def GetPathsStandardCase( path_dir ):
def _GetPathsStandardCase( path_dir ):
if not USE_WORKING_DIR and not path_dir.startswith( '/' ):
path_dir = os.path.join( os.path.dirname( vim.current.buffer.name ),
path_dir )
Expand All @@ -124,7 +124,7 @@ def GetPathsStandardCase( path_dir ):
for relative_path in relative_paths )


def GenerateCandidatesForPaths( absolute_paths ):
def _GenerateCandidatesForPaths( absolute_paths ):
seen_basenames = set()
completion_dicts = []

Expand Down

0 comments on commit ddd0287

Please sign in to comment.