removed usage of longs, updated int instance checking and octal constants to be 2/3 compliant
This commit is contained in:
parent
5b7453b906
commit
8d6bf54a16
11 changed files with 27 additions and 25 deletions
|
@ -559,7 +559,6 @@ class CoreNode(CoreNodeBase):
|
|||
finally:
|
||||
self.rmnodedir()
|
||||
|
||||
|
||||
def cmd(self, args, wait=True):
|
||||
"""
|
||||
Runs shell command on node, with option to not wait for a result.
|
||||
|
@ -928,10 +927,10 @@ class CoreNode(CoreNodeBase):
|
|||
hostfilename = self.hostfilename(filename)
|
||||
dirname, _basename = os.path.split(hostfilename)
|
||||
if not os.path.isdir(dirname):
|
||||
os.makedirs(dirname, mode=0755)
|
||||
os.makedirs(dirname, mode=0o755)
|
||||
return open(hostfilename, mode)
|
||||
|
||||
def nodefile(self, filename, contents, mode=0644):
|
||||
def nodefile(self, filename, contents, mode=0o644):
|
||||
"""
|
||||
Create a node file with a given mode.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue