diff --git a/haproxy/main.py b/haproxy/main.py
index <HASH>..<HASH> 100644
--- a/haproxy/main.py
+++ b/haproxy/main.py
@@ -157,7 +157,7 @@ def print_commands():
         description = eval('dummy_log_file.cmd_{0}.__doc__'.format(cmd))
         if description:
             description = re.sub(r'\n\s+', ' ', description)
-            description.strip()
+            description = description.strip()
 
         print('{0}: {1}\n'.format(cmd, description))
strip() returns a new string

It must be assigned to a variable.