#NEWLINE# def __init__( self , fileobj ) : #NEWLINE# #INDENT# global rrule #NEWLINE# if ( not rrule ) : #NEWLINE# #INDENT# from dateutil import rrule #NEWLINE# #UNINDENT# if isinstance ( fileobj , string_types ) : #NEWLINE# #INDENT# self . _s = fileobj #NEWLINE# fileobj = open ( fileobj , 'r' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if hasattr ( fileobj , 'name' ) : #NEWLINE# #INDENT# self . _s = fileobj . name #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _s = repr ( fileobj ) #NEWLINE# #UNINDENT# #UNINDENT# self . _vtz = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . _parse_rfc ( fileobj . read ( ) )