pre-upload: drop old repo __file__ workaround
The fixed version was released in v1.12.34 in Aug 2016.
We don't support anything that old anyways :).
Bug: None
Test: `repo upload` still works
Change-Id: I1d385d2c4d55d4f1402019fa2aac2ce4dd2babaa
diff --git a/pre-upload.py b/pre-upload.py
index 66ac88b..01cf3a3 100755
--- a/pre-upload.py
+++ b/pre-upload.py
@@ -26,12 +26,6 @@
import os
import sys
-try:
- __file__
-except NameError:
- # Work around repo until it gets fixed.
- # https://gerrit-review.googlesource.com/75481
- __file__ = os.path.join(os.getcwd(), 'pre-upload.py')
_path = os.path.dirname(os.path.realpath(__file__))
if sys.path[0] != _path:
sys.path.insert(0, _path)