Show More
@@ -783,9 +783,6 b' def makedirs(name, mode=None):' | |||
|
783 | 783 | parent = os.path.abspath(os.path.dirname(name)) |
|
784 | 784 | try: |
|
785 | 785 | os.mkdir(name) |
|
786 | if mode is not None: | |
|
787 | os.chmod(name, mode) | |
|
788 | return | |
|
789 | 786 | except OSError, err: |
|
790 | 787 | if err.errno == errno.EEXIST: |
|
791 | 788 | return |
@@ -793,6 +790,8 b' def makedirs(name, mode=None):' | |||
|
793 | 790 | raise |
|
794 | 791 | makedirs(parent, mode) |
|
795 | 792 | makedirs(name, mode) |
|
793 | if mode is not None: | |
|
794 | os.chmod(name, mode) | |
|
796 | 795 | |
|
797 | 796 | def readfile(path): |
|
798 | 797 | fp = open(path, 'rb') |
General Comments 0
You need to be logged in to leave comments.
Login now