File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed
Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -467,15 +467,6 @@ def windows_to_unix(windows_time):
467467 # 1601-1970, then we divide by 10^7 to bring it back to seconds.
468468 return (windows_time - 116444735995904000 )/ 10 ** 7
469469
470- import inspect
471- def key_in_bases (key ,bases ):
472- bases = list (bases )
473- for base in list (bases ):
474- bases .extend (inspect .getmro (base ))
475- for clazz in set (bases ):
476- if key in clazz .__dict__ : return True
477- return False
478-
479470class AttributeDict (dict ):
480471 def __getattr__ (self , name ):
481472 try :
@@ -641,22 +632,6 @@ def __str__(self):
641632 else :
642633 return "{0:0>2}.{1:0>2}" .format (self .mins ,self .secs )
643634
644- class RangeMap (dict ):
645- def add_range (self , start , end , reader_set ):
646- self .ranges .append ((start , end , reader_set ))
647-
648- def __init__ (self ):
649- self .ranges = list ()
650-
651- def __getitem__ (self ,key ):
652- for start , end , range_set in self .ranges :
653- if end :
654- if (start <= key < end ):
655- return range_set
656- else :
657- if start <= key :
658- return range_set
659- raise KeyError (key )
660635
661636class Formatter (argparse .RawTextHelpFormatter ):
662637 """FlexiFormatter which respects new line formatting and wraps the rest
You can’t perform that action at this time.
0 commit comments