Changes between Version 108 and Version 109 of EducationalAssignments/SecurityLayerPartOne

Changes between Version 108 and Version 109 of EducationalAssignments/SecurityLayerPartOne

Please note that these Trac pages are no longer being updated. Wiki contents/documentation have moved to GitHub.

Changes between Version 108 and Version 109 of EducationalAssignments/SecurityLayerPartOne

Please note that these Trac pages are no longer being updated. Wiki contents/documentation have moved to GitHub.

Changes between Version 108 and Version 109 of EducationalAssignments/SecurityLayerPartOne

Show
Ignore:
Timestamp:
05/23/12 11:54:58 (7 years ago)
Author:
ericms
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • EducationalAssignments/SecurityLayerPartOne

    v108 v109  
    188188# Attempt to write "MZ" to the file 
    189189try: 
    190         myfile.writeat("MZ",0) 
     190    myfile.writeat("MZ",0) 
    191191  
    192192# It raised an Exception (as it was supposed to): 
    193193except ValueError: 
    194   log("The security layer correctly blocked the write!!!") 
     194    log("The security layer correctly blocked the write!!!") 
    195195  
    196196# No Exception was raise 
    197197else: 
    198   log("Wrote an MZ!!!") 
     198    log("Wrote an MZ!!!") 
    199199  
    200200finally: 
    201201  # Close the file after our attempt. 
    202         myfile.close() 
     202    myfile.close() 
    203203}}} 
    204204