Skip to content
Snippets Groups Projects
Commit f369f41d authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix python deprecation warnings

parent ecb7e180
No related branches found
No related tags found
No related merge requests found
...@@ -575,7 +575,7 @@ def replace_in(self, src, dst=None, searchdict={}): ...@@ -575,7 +575,7 @@ def replace_in(self, src, dst=None, searchdict={}):
if dst == None: if dst == None:
dst = src dst = src
# read src # read src
f = open(self.src_path_of(src), "rU") f = open(self.src_path_of(src), "r")
contents = f.read() contents = f.read()
f.close() f.close()
# apply dict replacements # apply dict replacements
......
#!/usr/bin/env python3 #!/usr/bin/env python3
"""\ """\
@file test_llsdmessage_peer.py @file test_llcorehttp_peer.py
@author Nat Goodspeed @author Nat Goodspeed
@date 2008-10-09 @date 2008-10-09
@brief This script asynchronously runs the executable (with args) specified on @brief This script asynchronously runs the executable (with args) specified on
......
...@@ -272,7 +272,7 @@ def icon_path(self): ...@@ -272,7 +272,7 @@ def icon_path(self):
def extract_names(self,src): def extract_names(self,src):
try: try:
contrib_file = open(src,'rU') contrib_file = open(src,'r')
except IOError: except IOError:
print("Failed to open '%s'" % src) print("Failed to open '%s'" % src)
raise raise
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment