summaryrefslogtreecommitdiff
path: root/ftplugin
diff options
context:
space:
mode:
authorryanss2015-03-12 23:59:00 -0400
committerryanss2015-03-12 23:59:00 -0400
commit681ad0ef1049ed4f6b45f4e8522a3f7af937ce93 (patch)
tree931d646512f98f050d2fe2743ef57a5c6ff5f9c6 /ftplugin
parent81754e6acc9cb4d8210229a3077eadda3efb85dd (diff)
downloadvim-hn-681ad0ef1049ed4f6b45f4e8522a3f7af937ce93.tar.gz
Python 3 fixes
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/hackernews.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/ftplugin/hackernews.vim b/ftplugin/hackernews.vim
index f8447f7..8334464 100644
--- a/ftplugin/hackernews.vim
+++ b/ftplugin/hackernews.vim
@@ -30,8 +30,9 @@ Python << EOF
if 'hackernews' not in sys.modules:
import hackernews
else:
+ import imp
# Reload python module to avoid errors when updating plugin
- hackernews = reload(hackernews)
+ hackernews = imp.reload(hackernews)
EOF