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