Skip to content

Instantly share code, notes, and snippets.

@jay-zhuang
Created April 15, 2013 00:22
Show Gist options
  • Save jay-zhuang/5384845 to your computer and use it in GitHub Desktop.
Save jay-zhuang/5384845 to your computer and use it in GitHub Desktop.
class customersSystem
def say_hello():
if customer_name and customer_name in customer_list:
print "hello " + customer_name
# the code needs to be change and it is longer than 80
if customer_name and customer_name in system_database.get_customer_list():
print "hello" + customer_name
# To format this code, "=" will not help you.
# if textwidth has been set, just add baskets around it would automatically warp the code:
if (customer_name and customer_name in
system_database.get_customer_list()):
print "hello" + customer_name
# if there's existing code you want to re-format:
if (customer_name and customer_name in system_database.get_customer_list()):
print "hello" + customer_name
# "gqgq" could warp the current line. Or "gqh"
if (customer_name and customer_name in
system_database.get_customer_list()):
print "hello" + customer_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment