Guest User

Untitled

a guest
Jul 17th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. from __future__ import print_function
  4.  
  5. try:
  6. import platform_specific_module
  7. except ImportError:
  8. platform_specific_module = None
  9.  
  10. class NameOfClass(object):
  11.  
  12. __doc__ = """ Class information """
  13.  
  14. STATICVAR = None
  15.  
  16. def __init(self):
  17. glabalVar = None
  18.  
  19. def main(self, var1=None,var2=None):
  20. if var1 != None:
  21. "Do If statement"
  22. else:
  23. "Do Else Statement"
  24. return self.submethod("test")
  25.  
  26. def submethod(test):
  27. return(test)
  28.  
  29. if __name__ == "__main__":
  30. "Do something when not imported as module"
Add Comment
Please, Sign In to add comment