]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Some codestyle updates in babel.messages.jslexer
authorArmin Ronacher <armin.ronacher@active-4.com>
Thu, 25 Jul 2013 07:29:53 +0000 (09:29 +0200)
committerArmin Ronacher <armin.ronacher@active-4.com>
Thu, 25 Jul 2013 07:29:53 +0000 (09:29 +0200)
babel/messages/jslexer.py

index d49687be539159d4afc7d06a33e7c0d38b936265..22c6e1f9ce404340d1b98eb3758308975be05cc5 100644 (file)
@@ -74,8 +74,6 @@ def indicates_division(token):
 def unquote_string(string):
     """Unquote a string with JavaScript rules.  The string has to start with
     string delimiters (``'`` or ``"``.)
-
-    :return: a string
     """
     assert string and string[0] == string[-1] and string[0] in '"\'', \
         'string provided is not properly delimited'
@@ -130,9 +128,7 @@ def unquote_string(string):
 
 
 def tokenize(source):
-    """Tokenize a JavaScript source.
-
-    :return: generator of `Token`\s
+    """Tokenize a JavaScript source.  Returns a generator of tokens.
     """
     may_divide = False
     pos = 0