Make merging easier by formattng comment blocks the same in Py3.1

This commit is contained in:
Raymond Hettinger 2009-01-20 03:36:36 +00:00
parent 562a4ada56
commit ae3f068fb5

View file

@ -12,8 +12,9 @@ import sys as _sys
import heapq as _heapq import heapq as _heapq
from itertools import repeat as _repeat, chain as _chain, starmap as _starmap, ifilter as _ifilter from itertools import repeat as _repeat, chain as _chain, starmap as _starmap, ifilter as _ifilter
######################################################################## ################################################################################
### namedtuple ####################################################### ### namedtuple
################################################################################
def namedtuple(typename, field_names, verbose=False): def namedtuple(typename, field_names, verbose=False):
"""Returns a new subclass of tuple with named fields. """Returns a new subclass of tuple with named fields.
@ -114,7 +115,8 @@ def namedtuple(typename, field_names, verbose=False):
######################################################################## ########################################################################
### Counter ########################################################## ### Counter
########################################################################
class Counter(dict): class Counter(dict):
'''Dict subclass for counting hashable items. Sometimes called a bag '''Dict subclass for counting hashable items. Sometimes called a bag