Patchwork error: use docstrings, not bare strings, for error classes

login
register
mail settings
Submitter michaeljedgar@gmail.com
Date Aug. 30, 2014, 3:33 p.m.
Message ID <67a45fae8b0e72895ea1.1409412809@adgar-macbookpro3.roam.corp.google.com>
Download mbox | patch
Permalink /patch/5651/
State Accepted
Headers show

Comments

michaeljedgar@gmail.com - Aug. 30, 2014, 3:33 p.m.
# HG changeset patch
# User Mike Edgar <adgar@google.com>
# Date 1409394140 -7200
#      Sat Aug 30 12:22:20 2014 +0200
# Node ID 67a45fae8b0e72895ea11a937153bc3130ecf48f
# Parent  bdc0e04df243d3995c7266bf7d138fddd0449ba6
error: use docstrings, not bare strings, for error classes

Patch

diff -r bdc0e04df243 -r 67a45fae8b0e mercurial/error.py
--- a/mercurial/error.py	Wed Aug 27 18:35:34 2014 +0200
+++ b/mercurial/error.py	Sat Aug 30 12:22:20 2014 +0200
@@ -43,13 +43,13 @@ 
         self.hint = kw.get('hint')
 
 class ConfigError(Abort):
-    'Exception raised when parsing config files'
+    """Exception raised when parsing config files"""
 
 class OutOfBandError(Exception):
-    'Exception raised when a remote repo reports failure'
+    """Exception raised when a remote repo reports failure"""
 
 class ParseError(Exception):
-    'Exception raised when parsing config files (msg[, pos])'
+    """Exception raised when parsing config files (msg[, pos])"""
 
 class RepoError(Exception):
     def __init__(self, *args, **kw):