File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -108,12 +108,11 @@ def check_challenge_1():
108
108
return True
109
109
elif result == 2 :
110
110
print (f"🚧 Your command ran, but the contents of intro.txt don't seem to have changed. Please check your command and try again." )
111
- print (f"intro.txt still says:\n \t { new_content .decode ()} \n " )
112
111
return False
113
112
elif result == 4 :
114
113
print (f"🚧 Your command ran, but the file permissions for input changed when they shouldn't have. Please check your command and try again." )
115
- print (f"\t Expected permissions:\t intro .txt (644)" )
116
- print (f"\t Actual permissions:\t intro .txt ({ new_perms } )\n " )
114
+ print (f"\t Original permissions:\t permanent .txt (644)" )
115
+ print (f"\t Your permissions:\t permanent .txt ({ oct ( os . stat ( 'permanent.txt' ). st_mode )[ - 3 :] } )\n " )
117
116
return False
118
117
else :
119
118
print ("⛔ Sorry, that's not the right answer. Please make sure your challenge_1 command modifies the file's content, but not its' permissions.\n " )
You can’t perform that action at this time.
0 commit comments