Skip to content

Commit 7e44156

Browse files
committed
Moar safer
1 parent f240336 commit 7e44156

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

phabricator/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
except:
1515
__version__ = 'unknown'
1616

17+
import copy
1718
import hashlib
1819
import httplib
1920
import json
@@ -195,7 +196,7 @@ def itervalues(self):
195196
class Resource(object):
196197
def __init__(self, api, interface=None, endpoint=None, method=None):
197198
self.api = api
198-
self.interface = interface or parse_interfaces(INTERFACES)
199+
self.interface = interface or copy.deepcopy(parse_interfaces(INTERFACES))
199200
self.endpoint = endpoint
200201
self.method = method
201202

0 commit comments

Comments
 (0)