eric6/Plugins/VcsPlugins/vcsSubversion/SvnUtilities.py

changeset 7836
2f0d208b8137
parent 7785
9978016560ec
child 7923
91e843545d9a
equal deleted inserted replaced
7835:0835ed67714b 7836:2f0d208b8137
52 except OSError: 52 except OSError:
53 pass 53 pass
54 try: 54 try:
55 with open(config, "w") as f: 55 with open(config, "w") as f:
56 f.write(DefaultConfig) 56 f.write(DefaultConfig)
57 except IOError: 57 except OSError:
58 pass 58 pass
59 59
60 60
61 def amendConfig(): 61 def amendConfig():
62 """ 62 """
64 """ 64 """
65 config = getConfigPath() 65 config = getConfigPath()
66 try: 66 try:
67 with open(config, "r") as f: 67 with open(config, "r") as f:
68 configList = f.read().splitlines() 68 configList = f.read().splitlines()
69 except IOError: 69 except OSError:
70 return 70 return
71 71
72 newConfig = [] 72 newConfig = []
73 ignoresFound = False 73 ignoresFound = False
74 amendList = [] 74 amendList = []
101 101
102 if newConfig != configList: 102 if newConfig != configList:
103 try: 103 try:
104 with open(config, "w") as f: 104 with open(config, "w") as f:
105 f.write("\n".join(newConfig)) 105 f.write("\n".join(newConfig))
106 except IOError: 106 except OSError:
107 pass 107 pass

eric ide

mercurial