Show More
@@ -783,16 +783,15 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 |
|
792 | 789 | if not name or parent == name or err.errno != errno.ENOENT: |
|
793 | 790 | raise |
|
794 | makedirs(parent, mode) | |
|
795 | makedirs(name, mode) | |
|
791 | makedirs(parent, mode) | |
|
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