Bump version for 0.5.2
diff --git a/README.rst b/README.rst
index dc7dab3..d9401d1 100644
--- a/README.rst
+++ b/README.rst
@@ -65,6 +65,11 @@
 Changes
 -------
 
+0.5.2 - 2016-07-31
+``````````````````
+
+* When opening files ourselves, make sure we always name the file variable
+
 0.5.1 - 2016-07-28
 ``````````````````
 
diff --git a/mccabe.py b/mccabe.py
index 1e87c0a..c40381a 100644
--- a/mccabe.py
+++ b/mccabe.py
@@ -16,7 +16,7 @@
 except ImportError:   # Python 2.5
     from flake8.util import ast, iter_child_nodes
 
-__version__ = '0.5.1'
+__version__ = '0.5.2'
 
 
 class ASTVisitor(object):