GC does it automatically, but what the hell
This commit is contained in:
parent
b3dd4ba985
commit
7e5ba09aca
|
@ -1971,6 +1971,7 @@ class Connection:
|
||||||
# We have the vcard cached
|
# We have the vcard cached
|
||||||
f = open(path_to_file)
|
f = open(path_to_file)
|
||||||
c = f.read()
|
c = f.read()
|
||||||
|
f.close()
|
||||||
card = common.xmpp.Node(node = c)
|
card = common.xmpp.Node(node = c)
|
||||||
vcard = self.node_to_dict(card)
|
vcard = self.node_to_dict(card)
|
||||||
if vcard.has_key('PHOTO'):
|
if vcard.has_key('PHOTO'):
|
||||||
|
|
Loading…
Reference in New Issue