JulianEberius/SublimeRope — pull request #3 by OscarL (2011-12-15 18:56:49+00:00)
Title: Minor tweaks to on_query_completions().

* Moved variables (loc and line) nearer to their point of use.
* Always use rope's sorted_proposal() (even for simple_module_completions).
* Changed the 'identifier' calculation, as to properly handle cases as invoking autocompletion after 'if sys.' (that was returning 'if sys', now it returns 'sys', and simple_module_completions returns meaningful results).