LEFT | RIGHT |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 #------------------------------------------------------------------- | 2 #------------------------------------------------------------------- |
3 # tarfile.py | 3 # tarfile.py |
4 #------------------------------------------------------------------- | 4 #------------------------------------------------------------------- |
5 # Copyright (C) 2002 Lars Gustaebel <lars@gustaebel.de> | 5 # Copyright (C) 2002 Lars Gustaebel <lars@gustaebel.de> |
6 # All rights reserved. | 6 # All rights reserved. |
7 # | 7 # |
8 # Permission is hereby granted, free of charge, to any person | 8 # Permission is hereby granted, free of charge, to any person |
9 # obtaining a copy of this software and associated documentation | 9 # obtaining a copy of this software and associated documentation |
10 # files (the "Software"), to deal in the Software without | 10 # files (the "Software"), to deal in the Software without |
(...skipping 2497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2508 """ | 2508 """ |
2509 try: | 2509 try: |
2510 t = open(name) | 2510 t = open(name) |
2511 t.close() | 2511 t.close() |
2512 return True | 2512 return True |
2513 except TarError: | 2513 except TarError: |
2514 return False | 2514 return False |
2515 | 2515 |
2516 bltn_open = open | 2516 bltn_open = open |
2517 open = TarFile.open | 2517 open = TarFile.open |
LEFT | RIGHT |