OLD | NEW |
1 # ----------------------------------------------------------------------------- | 1 # ----------------------------------------------------------------------------- |
2 # ply: lex.py | 2 # ply: lex.py |
3 # | 3 # |
4 # Copyright (C) 2001-2011, | 4 # Copyright (C) 2001-2011, |
5 # David M. Beazley (Dabeaz LLC) | 5 # David M. Beazley (Dabeaz LLC) |
6 # All rights reserved. | 6 # All rights reserved. |
7 # | 7 # |
8 # Redistribution and use in source and binary forms, with or without | 8 # Redistribution and use in source and binary forms, with or without |
9 # modification, are permitted provided that the following conditions are | 9 # modification, are permitted provided that the following conditions are |
10 # met: | 10 # met: |
(...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1049 if hasattr(r,"__call__"): | 1049 if hasattr(r,"__call__"): |
1050 f.__doc__ = r.__doc__ | 1050 f.__doc__ = r.__doc__ |
1051 else: | 1051 else: |
1052 f.__doc__ = r | 1052 f.__doc__ = r |
1053 return f | 1053 return f |
1054 return set_doc | 1054 return set_doc |
1055 | 1055 |
1056 # Alternative spelling of the TOKEN decorator | 1056 # Alternative spelling of the TOKEN decorator |
1057 Token = TOKEN | 1057 Token = TOKEN |
1058 | 1058 |
OLD | NEW |