diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -34,6 +34,10 @@ except ImportError: # then fall back to Python 2
__location__ = os.path.join(os.getcwd(), os.path.dirname(
inspect.getfile(inspect.currentframe())))
+# Are we building on ReadTheDocs?
+on_rtd = os.envi... | PCK Do not install requirements on RTD | py |
diff --git a/python/regress.py b/python/regress.py
index <HASH>..<HASH> 100644
--- a/python/regress.py
+++ b/python/regress.py
@@ -123,6 +123,7 @@ def getTuning(y,model) :
y = y/sum(y)
mu = dot(model.s,y)
sigma = dot(y,(model.s-mu)**2)
+ return (mu,sigma)
def getNorm(y,model) :
b = getRegression(y,model... | Added returns for gaussian fit | py |
diff --git a/salt/grains/core.py b/salt/grains/core.py
index <HASH>..<HASH> 100644
--- a/salt/grains/core.py
+++ b/salt/grains/core.py
@@ -993,7 +993,10 @@ def _virtual_hv(osdata):
grains = {}
# Bail early if we're not running on Xen
- if 'xen' not in osdata['virtual']:
+ try:
+ if 'xen' not in... | Handle the case the osdata dict doesn't contain any virtual key. This would happen if someone runs on bare metal, an admittedly increasingly rare situation... | py |
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index <HASH>..<HASH> 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -689,7 +689,7 @@ class ProjectJob(RESTObject):
str: The artifacts if `streamed` is False, None otherwise.
"""
path = '%s/%s/artifacts' % (self.mana... | Fix http_get method in get artifacts and job trace | py |
diff --git a/tomodachi/container.py b/tomodachi/container.py
index <HASH>..<HASH> 100644
--- a/tomodachi/container.py
+++ b/tomodachi/container.py
@@ -184,6 +184,7 @@ class ServiceContainer(object):
await registry._register_service(instance)
started_futures.add(getatt... | add _stopping_service function to be run immediatly at shutdown signal | py |
diff --git a/flask_s3.py b/flask_s3.py
index <HASH>..<HASH> 100644
--- a/flask_s3.py
+++ b/flask_s3.py
@@ -375,8 +375,11 @@ def create_all(app, user=None, password=None, bucket_name=None,
:param location: the AWS region to host the bucket in; an empty
string indicates the default region shoul... | updated doc for S3 regions (#<I>) | py |
diff --git a/aiorpcx/session.py b/aiorpcx/session.py
index <HASH>..<HASH> 100644
--- a/aiorpcx/session.py
+++ b/aiorpcx/session.py
@@ -25,7 +25,7 @@
__all__ = ('Connector', 'RPCSession', 'MessageSession', 'Server', 'ExcessiveSessionCostError',
- 'BatchError')
+ 'BatchError', 'Concurrency')
... | Concurrency: export. Tweak constants | py |
diff --git a/morpfw/crud/view.py b/morpfw/crud/view.py
index <HASH>..<HASH> 100644
--- a/morpfw/crud/view.py
+++ b/morpfw/crud/view.py
@@ -343,7 +343,7 @@ def validation_error(context, request):
form_errors.append(e.message)
# FIXME: should log this when a config for DEBUG_SECURITY is enabled
- log... | there's no need to print traceback on validation error | py |
diff --git a/canvasvg.py b/canvasvg.py
index <HASH>..<HASH> 100644
--- a/canvasvg.py
+++ b/canvasvg.py
@@ -21,10 +21,12 @@ except ImportError:
from Tkconstants import *
-try:
- warn
-except NameError:
- from warnings import warn
+def warn(msg):
+ from sys import stderr
+
+ stderr.write('canvas2svg warning: ')
+ s... | Replace python 'warn' with custom function Sometimes 'warn' hanged application. Problem reported by Philippe Esperet, and confirmed on my machine. | py |
diff --git a/tests/test_brozzling.py b/tests/test_brozzling.py
index <HASH>..<HASH> 100644
--- a/tests/test_brozzling.py
+++ b/tests/test_brozzling.py
@@ -67,8 +67,8 @@ def httpd(request):
self.send_header('WWW-Authenticate', 'Basic realm=\"Test\"')
self.send_header('Content-type', 'te... | Fix test_brozzling::httpd fixture We used `self.headers.getheader` which no longer works. We replace it with `self.headers.get`. We change the code to write binary data to `self.wfile` because we get an exception for writing str and/or None. | py |
diff --git a/plenum/client/wallet.py b/plenum/client/wallet.py
index <HASH>..<HASH> 100644
--- a/plenum/client/wallet.py
+++ b/plenum/client/wallet.py
@@ -134,7 +134,7 @@ class Wallet:
req.signature = self.signMsg(msg=req.getSigningState(),
identifier=idr,
... | use refresh() instead of direct incrementation of requestId of IdData | py |
diff --git a/gromacs/setup.py b/gromacs/setup.py
index <HASH>..<HASH> 100644
--- a/gromacs/setup.py
+++ b/gromacs/setup.py
@@ -697,6 +697,7 @@ def _setup_MD(dirname,
mdp_parameters['tc-grps'] = 'System'
mdp_parameters['tau_t'] = tau_t # this overrides the commandline!
... | fixed: generated velocity also use the set temperature (was fixed at <I>K) | py |
diff --git a/lambda_cli/lambda_grammar.py b/lambda_cli/lambda_grammar.py
index <HASH>..<HASH> 100644
--- a/lambda_cli/lambda_grammar.py
+++ b/lambda_cli/lambda_grammar.py
@@ -84,7 +84,7 @@ class ExpressionBodyToExpression(Rule):
([ExpressionBody], [Expression])
]
def get_body(self):
- expr = s... | Fix issue with ExpressionBody to Expression rule | py |
diff --git a/master/buildbot/data/workers.py b/master/buildbot/data/workers.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/data/workers.py
+++ b/master/buildbot/data/workers.py
@@ -78,10 +78,10 @@ class WorkersEndpoint(Db2DataMixin, base.Endpoint):
@defer.inlineCallbacks
def get(self, resultSpec, kwar... | rename local variables "sldicts" and "sl" | py |
diff --git a/ykman/device.py b/ykman/device.py
index <HASH>..<HASH> 100644
--- a/ykman/device.py
+++ b/ykman/device.py
@@ -542,18 +542,22 @@ def get_name(info: DeviceInfo, key_type: Optional[YUBIKEY]) -> str:
if info.has_transport(TRANSPORT.NFC):
device_name = "Security Key NFC"
elif key_type... | Fix "YubiKey 4" naming broken in <I>. | py |
diff --git a/tests/test_doctests.py b/tests/test_doctests.py
index <HASH>..<HASH> 100644
--- a/tests/test_doctests.py
+++ b/tests/test_doctests.py
@@ -53,11 +53,14 @@ class DocTest(TestCase):
def load_tests(loader, tests, ignore):
"""Run doctests for the clayton.nlp module"""
- # doctess only verified on Pyt... | print whenever tests are run and when they aren't | py |
diff --git a/aegean.py b/aegean.py
index <HASH>..<HASH> 100755
--- a/aegean.py
+++ b/aegean.py
@@ -73,8 +73,8 @@ import multiprocessing
__author__ = 'Paul Hancock'
# Aegean version [Updated via script]
-__version__ = 'v1.9.6-98-gf2507bc'
-__date__ = '2015-07-29'
+__version__ = 'v1.9.6-127-g088562b'
+__date__ = '201... | merged dev -> master updated version/date | py |
diff --git a/ulog_parser/__init__.py b/ulog_parser/__init__.py
index <HASH>..<HASH> 100644
--- a/ulog_parser/__init__.py
+++ b/ulog_parser/__init__.py
@@ -303,6 +303,9 @@ class ULog:
data = self.file_handle.read(3)
header = self.MessageHeader(data)
data = self.file_han... | parser: handle cut files properly, where last msg was not written completely | py |
diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py
index <HASH>..<HASH> 100644
--- a/pyrogram/__init__.py
+++ b/pyrogram/__init__.py
@@ -24,7 +24,7 @@ if sys.version_info[:3] in [(3, 5, 0), (3, 5, 1), (3, 5, 2)]:
# Monkey patch the standard "typing" module because Python versions from 3.5.0 to 3.5.2 have a b... | Update asyncio-dev version | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -18,10 +18,10 @@ from hotqueue import HotQueue
class DummySerializer(object):
- """Dummy serializer for use in tests."""
+ """Dummy serializer that deliberately discards messages on dumps."""
@staticmethod
... | Ensuring that test_custom_serializer test is actually testing what we need it to | py |
diff --git a/fixtureless/factory.py b/fixtureless/factory.py
index <HASH>..<HASH> 100644
--- a/fixtureless/factory.py
+++ b/fixtureless/factory.py
@@ -78,3 +78,11 @@ def save_instances(iterable):
for instance in iterable:
instance.save()
yield instance
+
+
+def create(*args):
+ return Factory(... | Adding a simple create and build method for api ease | py |
diff --git a/indra/sources/medscan/processor.py b/indra/sources/medscan/processor.py
index <HASH>..<HASH> 100644
--- a/indra/sources/medscan/processor.py
+++ b/indra/sources/medscan/processor.py
@@ -160,7 +160,7 @@ class MedscanProcessor(object):
self.__tmp_dir = None
return
- def iter_statements... | Avoid gathering statements if not needed. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -33,6 +33,7 @@ setup(
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
+ 'Programming Language :: Python :: 3.5',
... | added python <I> to supported versions | py |
diff --git a/telebot/apihelper.py b/telebot/apihelper.py
index <HASH>..<HASH> 100644
--- a/telebot/apihelper.py
+++ b/telebot/apihelper.py
@@ -271,7 +271,7 @@ def send_location(token, chat_id, latitude, longitude, live_period=None, reply_t
method_url = r'sendLocation'
payload = {'chat_id': chat_id, 'latitude'... | Fix for SendLocation with live period Fix for payload['live_perion'] typo -> payload['live_period'] | py |
diff --git a/asyncpg/connection.py b/asyncpg/connection.py
index <HASH>..<HASH> 100644
--- a/asyncpg/connection.py
+++ b/asyncpg/connection.py
@@ -291,6 +291,12 @@ class Connection(metaclass=ConnectionMeta):
:param float timeout: Optional timeout value in seconds.
:return None: This method discards th... | Suggest copy_records_to_table() for the purpose of bulk insert. Connection.executemany() is not the fastest choice for bulk insert, copy_records_to_table() is a better choice, so make it easier to find by putting a note in executemany() documentation. See #<I> for an example of a performance confusion. | py |
diff --git a/Adafruit_GPIO/Platform.py b/Adafruit_GPIO/Platform.py
index <HASH>..<HASH> 100644
--- a/Adafruit_GPIO/Platform.py
+++ b/Adafruit_GPIO/Platform.py
@@ -42,6 +42,9 @@ def platform_detect():
# Linux-3.10.25+-armv6l-with-debian-7.4
if plat.lower().find('armv6l-with-debian') > -1:
return RASPBERRY_PI
+ # ... | Update platform detection to support pidora distro. | py |
diff --git a/hive/capabilities/vnc.py b/hive/capabilities/vnc.py
index <HASH>..<HASH> 100644
--- a/hive/capabilities/vnc.py
+++ b/hive/capabilities/vnc.py
@@ -19,14 +19,6 @@ import random
from handlerbase import HandlerBase
-def get_random_challenge():
- challenge = []
- for i in range(0, 16):
- temp ... | moved the random challenge function to the end | py |
diff --git a/marmee/marmee.py b/marmee/marmee.py
index <HASH>..<HASH> 100644
--- a/marmee/marmee.py
+++ b/marmee/marmee.py
@@ -58,15 +58,24 @@ class Marmee(AbstractMarmee):
def outputs(self):
return self._outputs
+ @outputs.getter
+ def get_outputs(self):
+ return self.outputs
+
+ @outpu... | Fix outputs properties with setter and getter | py |
diff --git a/jenkins/bootstrap.py b/jenkins/bootstrap.py
index <HASH>..<HASH> 100755
--- a/jenkins/bootstrap.py
+++ b/jenkins/bootstrap.py
@@ -1080,5 +1080,6 @@ def parse_args(arguments=None):
if __name__ == '__main__':
+ logging.info('Args: %s', ' '.join(pipes.quote(a) for a in sys.argv[1:]))
ARGS = parse... | Log bootstrap arguments. This makes debugging *much* easier! | py |
diff --git a/gui/is_dock.py b/gui/is_dock.py
index <HASH>..<HASH> 100644
--- a/gui/is_dock.py
+++ b/gui/is_dock.py
@@ -469,6 +469,7 @@ class ISDock(QtGui.QDockWidget, Ui_ISDockBase):
'impact calculator.')
myMessage += getExceptionWithStacktrace(e, html=True)
se... | Return nicely when exception is encountered (e.g. in case of #<I>) | py |
diff --git a/bcbio/chipseq/peaks.py b/bcbio/chipseq/peaks.py
index <HASH>..<HASH> 100644
--- a/bcbio/chipseq/peaks.py
+++ b/bcbio/chipseq/peaks.py
@@ -104,6 +104,6 @@ def _get_multiplier(samples):
else:
to_skip += 1.0
mult = (to_process - to_skip) / len(samples)
- if mult < 0:
+ if mult... | Fix chipseq resource logic when peak calling is not requested. | py |
diff --git a/ip_assembler/tasks.py b/ip_assembler/tasks.py
index <HASH>..<HASH> 100644
--- a/ip_assembler/tasks.py
+++ b/ip_assembler/tasks.py
@@ -200,14 +200,14 @@ class IPEMailChecker(PeriodicTask):
# iterate the mail indices and fetch the mails
ips_created = 0
for m... | fixing error where str where expected but bytes are given | py |
diff --git a/molmod/molecular_graphs.py b/molmod/molecular_graphs.py
index <HASH>..<HASH> 100644
--- a/molmod/molecular_graphs.py
+++ b/molmod/molecular_graphs.py
@@ -165,7 +165,7 @@ class MolecularGraph(Graph):
# actual removal
edges = [edges[i] for i in range(len(edges)) if mask[i]]
if do_o... | Fixed small bug in (bond) orders attribute assignation | py |
diff --git a/openquake/hazardlib/gsim/base.py b/openquake/hazardlib/gsim/base.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/gsim/base.py
+++ b/openquake/hazardlib/gsim/base.py
@@ -98,8 +98,7 @@ def _get_poes(mean_std, loglevels, truncation_level):
if truncation_level == 0: # just compare imls t... | Restored division by zero in _get_poes for performance | py |
diff --git a/tests/test_pool.py b/tests/test_pool.py
index <HASH>..<HASH> 100644
--- a/tests/test_pool.py
+++ b/tests/test_pool.py
@@ -71,6 +71,34 @@ class PoolTestCase(StateClearingTestCase):
assert len(pool.inq.queue) == 30, len(pool.inq.queue)
+ def test_kills_all_coros(self):
+ class Pool(sel... | cover that last little bit of pool code | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -317,7 +317,8 @@ linkcheck_ignore = [
r'https?://waffle\.io.*',
r'https?://github\.com/pytest-dev/pytest/blob/master/CHANGELOG\.rst',
r'https?://github\.com/jantman/aw... | ignore link with anchor that sphinx detects as missing | py |
diff --git a/iopipe/contrib/profiler/plugin.py b/iopipe/contrib/profiler/plugin.py
index <HASH>..<HASH> 100644
--- a/iopipe/contrib/profiler/plugin.py
+++ b/iopipe/contrib/profiler/plugin.py
@@ -58,12 +58,13 @@ class ProfilerPlugin(Plugin):
with tempfile.NamedTemporaryFile() as stats_file:
... | Add a check for signedRequest before using it | py |
diff --git a/confidence.py b/confidence.py
index <HASH>..<HASH> 100644
--- a/confidence.py
+++ b/confidence.py
@@ -173,6 +173,12 @@ class Configuration(Mapping):
"""
return self.get(attr, default=NotConfigured)
+ def __setattr__(self, name, value):
+ if name.startswith('_'):
+ s... | Raise AttributeError on assignment to non-protected name | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -97,7 +97,7 @@ setup(
'pyroma>=2.2,<3',
'vulture>=1.1,<2',
'bandit>=1.4,<2',
- 'pyflakes>=1.5,<3',
+ 'pyflakes>=1.5,<2.2',
'mccabe>=0.6,<0.7',
'demjson>=2.2.4,<3',
... | Pin pyflakes until flake8 catches up | py |
diff --git a/tests/test_guide.py b/tests/test_guide.py
index <HASH>..<HASH> 100644
--- a/tests/test_guide.py
+++ b/tests/test_guide.py
@@ -26,7 +26,9 @@ class GuideTest(TestCase):
def test_image(self):
self.assertEqual(Image(14), self.wallstreet.image)
- self.assertEqual(Guide(14729).image, None)
+... | Remove no-image test on Guide. It's failing because the guide has been deleted, and I can't find a replacement because the site content is too well kept. :) | py |
diff --git a/src/molecule/verifier/testinfra.py b/src/molecule/verifier/testinfra.py
index <HASH>..<HASH> 100644
--- a/src/molecule/verifier/testinfra.py
+++ b/src/molecule/verifier/testinfra.py
@@ -171,7 +171,7 @@ class Testinfra(Verifier):
LOG.warning(msg)
return
- if not len(self._... | Fix additional_files_or_dirs in skip check (#<I>) | py |
diff --git a/wilson/classes.py b/wilson/classes.py
index <HASH>..<HASH> 100644
--- a/wilson/classes.py
+++ b/wilson/classes.py
@@ -185,7 +185,10 @@ class Wilson(ConfigurableClass):
wc_ew = self._get_from_cache(sector='all', scale=scale_ew, eft='WET', basis='JMS')
if wc_ew is None:
... | [classes] Do not run when starting at scale_ew | py |
diff --git a/thoth/python/project.py b/thoth/python/project.py
index <HASH>..<HASH> 100644
--- a/thoth/python/project.py
+++ b/thoth/python/project.py
@@ -300,10 +300,10 @@ class Project:
return None
return self.pipfile.meta.requires.get("python_version", None)
- def to_dict(self):
+ def t... | Optionally keep Thoth section when generating project | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -78,7 +78,7 @@ master_doc = 'index'
# General information about the project.
project = u'pyQuil'
-copyright = u'2016, Rigetti Computing'
+copyright = u'2017, Rigetti Computing'
... | Change copyright year in docs conf.py | py |
diff --git a/schedula/utils/blue.py b/schedula/utils/blue.py
index <HASH>..<HASH> 100644
--- a/schedula/utils/blue.py
+++ b/schedula/utils/blue.py
@@ -112,7 +112,7 @@ class Blueprint:
def __call__(self, *args, **kwargs):
"""Calls the registered Blueprint."""
- return self.register()(*args, **kwar... | fix(blue): Add memo option when call a Blueprint. | py |
diff --git a/resttest.py b/resttest.py
index <HASH>..<HASH> 100644
--- a/resttest.py
+++ b/resttest.py
@@ -108,7 +108,7 @@ class BodyReader:
endidx = startidx + size
data = self.data
- if len(data) == 0:
+ if data is None or len(data) == 0:
return ''
if endidx >... | Fixed body reader to handle when data is None | py |
diff --git a/hrpg/core.py b/hrpg/core.py
index <HASH>..<HASH> 100644
--- a/hrpg/core.py
+++ b/hrpg/core.py
@@ -28,7 +28,7 @@ def cli():
usage:
hrpg status
hrpg user [<uid>]
- hrpg tasks (--habit | --daily | --todo | --reward) [<uid>]
+ hrpg tasks [--habit | --daily | --todo | --reward] [<ui... | GET tasks has no required arguments other than auth | py |
diff --git a/dbt/adapters/default/impl.py b/dbt/adapters/default/impl.py
index <HASH>..<HASH> 100644
--- a/dbt/adapters/default/impl.py
+++ b/dbt/adapters/default/impl.py
@@ -831,9 +831,9 @@ class DefaultAdapter(object):
cls.release_connection(profile, GET_CATALOG_OPERATION_NAME)
schemas = list(... | make schema filtering case-insensitive | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,10 +2,11 @@ import os
from setuptools import setup, find_packages
import localized_names as app
-
def read(fname):
try:
- return open(os.path.join(os.path.dirname(__file__), fname)).read()
+ return o... | Setup: read files in utf-8 | py |
diff --git a/juju/client/connection.py b/juju/client/connection.py
index <HASH>..<HASH> 100644
--- a/juju/client/connection.py
+++ b/juju/client/connection.py
@@ -389,7 +389,6 @@ class Connection:
max_size=self.max_frame_size,
server_hostname=server_hostname,
sock=sock,
- ... | Avoid keeping ws connection alive, asyncio SSL raises exception when the event loop is closed <URL> | py |
diff --git a/guake/notebook.py b/guake/notebook.py
index <HASH>..<HASH> 100644
--- a/guake/notebook.py
+++ b/guake/notebook.py
@@ -171,11 +171,11 @@ class TerminalNotebook(Gtk.Notebook):
directory = os.environ['HOME']
try:
if self.guake.settings.general.get_boolean('open-tab-c... | fix terminal directory selection after terminal has been closed | py |
diff --git a/tests/functional/test.py b/tests/functional/test.py
index <HASH>..<HASH> 100755
--- a/tests/functional/test.py
+++ b/tests/functional/test.py
@@ -206,7 +206,10 @@ def _get_testbas_options(fname):
match = reBIN.match(getName(fname))
if match and match.groups()[0].lower() in ('tzx', 'tap'):
... | bugfix: binary test where not being updated When using test.py -U on binary tests these where not being updated. Fixed. | py |
diff --git a/outline/wsgi.py b/outline/wsgi.py
index <HASH>..<HASH> 100644
--- a/outline/wsgi.py
+++ b/outline/wsgi.py
@@ -9,6 +9,8 @@ https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "replan.settings")
+os.environ.setdefault('DJANGO_CONFIGURATIO... | Adding django-configurations hook up for wsgi file. | py |
diff --git a/djcelery/snapshot.py b/djcelery/snapshot.py
index <HASH>..<HASH> 100644
--- a/djcelery/snapshot.py
+++ b/djcelery/snapshot.py
@@ -33,7 +33,6 @@ class Camera(Polaroid):
def __init__(self, *args, **kwargs):
super(Camera, self).__init__(*args, **kwargs)
- self.prev_count = 0
se... | Fixed bug with losing events. event_count is reset after every shutter, so don't try to keep track of it | py |
diff --git a/tracking/middleware.py b/tracking/middleware.py
index <HASH>..<HASH> 100644
--- a/tracking/middleware.py
+++ b/tracking/middleware.py
@@ -48,7 +48,7 @@ class VisitorTrackingMiddleware(object):
except Visitor.DoesNotExist:
visitor_user_agent = request.META.get('HTTP_USER_AGENT', None)
... | decode isn't in-place and latin-1 is bad encoding | py |
diff --git a/py/selenium/webdriver/chrome/options.py b/py/selenium/webdriver/chrome/options.py
index <HASH>..<HASH> 100644
--- a/py/selenium/webdriver/chrome/options.py
+++ b/py/selenium/webdriver/chrome/options.py
@@ -17,6 +17,7 @@
from selenium.webdriver.chromium.options import ChromiumOptions
from selenium.webdr... | [py] PEP<I> type hints for py/selenium/webdriver/chrome/options.py * PEP<I> hints for py/selenium/webdriver/chrome/options.py (#<I>) | py |
diff --git a/src/openbandparams/alloy.py b/src/openbandparams/alloy.py
index <HASH>..<HASH> 100644
--- a/src/openbandparams/alloy.py
+++ b/src/openbandparams/alloy.py
@@ -53,6 +53,18 @@ class Alloy(object):
# def __repr__(self):
# return self.name
+
+ def latex(self):
+ '''
+ Re... | add unimplemented interface methods to `Alloy` - latex - element_fraction | py |
diff --git a/bokeh/enums.py b/bokeh/enums.py
index <HASH>..<HASH> 100644
--- a/bokeh/enums.py
+++ b/bokeh/enums.py
@@ -31,7 +31,7 @@ Direction = enumeration("clock", "anticlock")
Units = enumeration("screen", "data")
AngleUnits = enumeration("deg", "rad")
Dimension = enumeration("width", "height", "x", "y")
-Locatio... | Add "max" to Location enumeration | py |
diff --git a/PyTerminalCommander/__init__.py b/PyTerminalCommander/__init__.py
index <HASH>..<HASH> 100644
--- a/PyTerminalCommander/__init__.py
+++ b/PyTerminalCommander/__init__.py
@@ -247,7 +247,8 @@ class Commander(urwid.Frame):
, show_help_on_start=False
, hook_stdout=False, hook_stderr=False
... | expose 'spaces_for_tab' to public interface | py |
diff --git a/astropy_helpers/tests/test_git_helpers.py b/astropy_helpers/tests/test_git_helpers.py
index <HASH>..<HASH> 100644
--- a/astropy_helpers/tests/test_git_helpers.py
+++ b/astropy_helpers/tests/test_git_helpers.py
@@ -23,7 +23,7 @@ def test_update_git_devstr(package_template, capsys):
m = _DEV_VERSION_RE.... | Let's see if stderr can tell us anything useful too... | py |
diff --git a/azure-devops/azure/devops/_file_cache.py b/azure-devops/azure/devops/_file_cache.py
index <HASH>..<HASH> 100644
--- a/azure-devops/azure/devops/_file_cache.py
+++ b/azure-devops/azure/devops/_file_cache.py
@@ -114,7 +114,13 @@ def get_cache_dir():
azure_devops_cache_dir = os.getenv('AZURE_DEVOPS_CACHE... | fix for issue #<I> (#<I>) * fix for issue #<I> * catch OSError instead of FileExistsError, since FileExistsError is not available in python <I> | py |
diff --git a/aikif/comms.py b/aikif/comms.py
index <HASH>..<HASH> 100755
--- a/aikif/comms.py
+++ b/aikif/comms.py
@@ -43,13 +43,10 @@ class Channel(object):
self.name = name
self.pwd_hash = pwd_hash
self.inc_msg = 0
-
+
def __str__(self):
res = self.name
re... | removed TEST function to separate unit test | py |
diff --git a/src/python/dxpy/bindings/dxfile_functions.py b/src/python/dxpy/bindings/dxfile_functions.py
index <HASH>..<HASH> 100644
--- a/src/python/dxpy/bindings/dxfile_functions.py
+++ b/src/python/dxpy/bindings/dxfile_functions.py
@@ -95,11 +95,11 @@ def download_dxfile(dxid, filename, chunksize=DEFAULT_BUFFER_SIZE... | Fix division by zero error when displaying progress for small files. Also make progress bar look more like wget's. | py |
diff --git a/fundamentals/__version__.py b/fundamentals/__version__.py
index <HASH>..<HASH> 100644
--- a/fundamentals/__version__.py
+++ b/fundamentals/__version__.py
@@ -1 +1 @@
-__version__ = '1.6.2'
+__version__ = '1.6.3' | small update to hidden yaml warnings | py |
diff --git a/fabfile.py b/fabfile.py
index <HASH>..<HASH> 100644
--- a/fabfile.py
+++ b/fabfile.py
@@ -15,6 +15,7 @@ settings = {
'south',
),
'STATIC_URL':'/',
+ 'SITE_ID': '1',
} | need a SITE_ID for tests to work | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -3090,7 +3090,7 @@ class Kconfig(object):
if end_token:
raise KconfigError(
- "expected '{}' at end of '{}'"
+ "error: expected '{}' at end of '{}'"
... | Add "error: " to the error message for a missing endchoice/endif/endmenu Makes it consistent with other parse errors and easier to find in logs, etc. | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -3874,7 +3874,7 @@ def _finalize_choice(node):
choice = node.item
cur = node.list
- while cur is not None:
+ while cur:
if isinstance(cur.item, Symbol):
cur.item.choi... | Remove redundant 'is not None' test Always a MenuNode or None. Can be tested simpler. | py |
diff --git a/eppy/bunch_subclass.py b/eppy/bunch_subclass.py
index <HASH>..<HASH> 100644
--- a/eppy/bunch_subclass.py
+++ b/eppy/bunch_subclass.py
@@ -486,7 +486,7 @@ def getreferingobjs(referedobj, iddgroups=None, fields=None):
try:
references = referedidd['reference']
except KeyError as e:
- ... | fixed a typo modified: eppy/bunch_subclass.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ setup(
license="Buy snare a beer",
keywords="voltron gdb lldb",
url="https://github.com/snarez/voltron",
- packages=['voltron'],
+ packages=find_packages(exclude=['tests', 'examples']),
i... | Apparently find_packages() is necessary | py |
diff --git a/salt/modules/apache.py b/salt/modules/apache.py
index <HASH>..<HASH> 100644
--- a/salt/modules/apache.py
+++ b/salt/modules/apache.py
@@ -379,7 +379,7 @@ def server_status(profile='default'):
def _parse_config(config, slot=None):
- ret = cStringIO.StringIO()
+ ret = cStringIO.StringIO('# This fi... | Add a comment to the top of the apache files | py |
diff --git a/common/vr/common/repo.py b/common/vr/common/repo.py
index <HASH>..<HASH> 100644
--- a/common/vr/common/repo.py
+++ b/common/vr/common/repo.py
@@ -79,7 +79,7 @@ class Repo(object):
"""
cmd = {
'hg': 'hg paths default',
- 'git': 'git config --get remote.origin.url',
... | Always use the 'local' config when resolving the origin URL for a git repository, allowing the client to supply a GIT_CONFIG variable without breaking VR deployments. | py |
diff --git a/py17track/__version__.py b/py17track/__version__.py
index <HASH>..<HASH> 100644
--- a/py17track/__version__.py
+++ b/py17track/__version__.py
@@ -1,2 +1,2 @@
"""Define a version constant."""
-__version__ = '2.0.2'
+__version__ = '2.1.0' | Bumped version to <I> | py |
diff --git a/phoebe/parameters/feedback.py b/phoebe/parameters/feedback.py
index <HASH>..<HASH> 100644
--- a/phoebe/parameters/feedback.py
+++ b/phoebe/parameters/feedback.py
@@ -253,7 +253,7 @@ class FeedbackLmfit(Feedback):
mu = lmfit_pars[ipar].value
sigma = lmfit_pars[ipar]... | Handled None from scipy's lmfit correctly now. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,6 @@ setup(
license='MIT',
packages=find_packages('src'),
package_dir={'': 'src'},
- package_data={'': ['VERSION']},
url='http://github.com/aeroxis/sultan',
classifiers=[
"Develop... | Removed an unnecessary line in 'setup.py' | py |
diff --git a/bigchaindb/backend/connection.py b/bigchaindb/backend/connection.py
index <HASH>..<HASH> 100644
--- a/bigchaindb/backend/connection.py
+++ b/bigchaindb/backend/connection.py
@@ -1,6 +1,7 @@
+from importlib import import_module
+
import bigchaindb
from bigchaindb.common.exceptions import ConfigurationErro... | Put std lib import at the top | py |
diff --git a/airflow/providers/microsoft/azure/hooks/adx.py b/airflow/providers/microsoft/azure/hooks/adx.py
index <HASH>..<HASH> 100644
--- a/airflow/providers/microsoft/azure/hooks/adx.py
+++ b/airflow/providers/microsoft/azure/hooks/adx.py
@@ -57,7 +57,7 @@ class AzureDataExplorerHook(BaseHook):
Authentication ... | Fix colon spacing in ``AzureDataExplorerHook`` docstring (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,8 +1,15 @@
from setuptools import setup
+import os
import securitycenter
-with open("README.md") as f:
- long_description = f.read()
+long_description = ''
+try:
+ from pypandoc import convert
+ if os.path.exis... | Changed license and uppped rev in modulel. | py |
diff --git a/pythonforandroid/toolchain.py b/pythonforandroid/toolchain.py
index <HASH>..<HASH> 100755
--- a/pythonforandroid/toolchain.py
+++ b/pythonforandroid/toolchain.py
@@ -575,15 +575,22 @@ class Graph(object):
def remove_redundant_graphs(self):
'''Removes possible graphs if they are equivalent to ... | Fix for #<I> - dependency graph issue Old for removing redundant dependency graphs had a bug in it where graph[i] was compared against itself and then removed (as it appears equal to itself). This caused #<I>. I've rearranged the loop in the function for removing redundant graphs to avoid this | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100755
--- a/tests.py
+++ b/tests.py
@@ -299,6 +299,11 @@ class TestSave(SaveAndCheck):
[(unicode(s),)]
)
+ def test_save_and_drop(self):
+ scraperwiki.sql.save([], dict(foo=7), table_name="dropper")
+ scraperwiki.sql.execute... | Test that after dropping a table, can still save. | py |
diff --git a/torfy/__init__.py b/torfy/__init__.py
index <HASH>..<HASH> 100644
--- a/torfy/__init__.py
+++ b/torfy/__init__.py
@@ -20,4 +20,4 @@
##################################################################################
# Calling the logger when being imported
-__version__="0.2.0b"
+__version__="0.2.0" | Prepared for releasing <I>. | py |
diff --git a/ipywidgets/widgets/tests/test_interaction.py b/ipywidgets/widgets/tests/test_interaction.py
index <HASH>..<HASH> 100644
--- a/ipywidgets/widgets/tests/test_interaction.py
+++ b/ipywidgets/widgets/tests/test_interaction.py
@@ -89,17 +89,6 @@ def test_single_value_string():
value=a,
)
-def te... | Adding type=password support for Text in TextView class. | py |
diff --git a/OMMBV/_core.py b/OMMBV/_core.py
index <HASH>..<HASH> 100644
--- a/OMMBV/_core.py
+++ b/OMMBV/_core.py
@@ -9,8 +9,8 @@ import numpy as np
import datetime
import pysat
# import reference IGRF fortran code within the package
-from pysatMagVect import igrf as igrf
-import pysatMagVect.fortran_coords
+from O... | BUG: Propagating name change | py |
diff --git a/tests/unit/modules/test_localemod.py b/tests/unit/modules/test_localemod.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/test_localemod.py
+++ b/tests/unit/modules/test_localemod.py
@@ -26,6 +26,7 @@ import salt.modules.localemod as localemod
from salt.exceptions import CommandExecutionError
from... | Lintfix: E<I>, PEP8 expected two blank lines | py |
diff --git a/forms_builder/example_project/settings.py b/forms_builder/example_project/settings.py
index <HASH>..<HASH> 100644
--- a/forms_builder/example_project/settings.py
+++ b/forms_builder/example_project/settings.py
@@ -15,6 +15,8 @@ ROOT_URLCONF = "%s.urls" % PROJECT_DIRNAME
TEMPLATE_DIRS = (os.path.join(PROJE... | Add test runner to example project since Django <I> doesn't provide a default. | py |
diff --git a/dedupe/training.py b/dedupe/training.py
index <HASH>..<HASH> 100644
--- a/dedupe/training.py
+++ b/dedupe/training.py
@@ -296,5 +296,5 @@ def prepare_index(blocker, pairs, matching) :
-OUT_OF_PREDICATES_WARNING = "Ran out of predicates: Dedupe tries to find blocking rules that will work well w... | fixed grammar errors in training.py Very minor edit. Improved clarity of the message "OUT_OF_PREDICATES_WARNING" by fixing some obvious grammar issues. | py |
diff --git a/netdiff/utils.py b/netdiff/utils.py
index <HASH>..<HASH> 100644
--- a/netdiff/utils.py
+++ b/netdiff/utils.py
@@ -81,9 +81,9 @@ def _make_diff(old, new):
diff_edges = old.copy()
not_different = []
# keep only new links in the graph
- for old_edge in old.edges(data=True):
+ for old_edge... | Removed data=True from _make_diff() as not needed | py |
diff --git a/spinoff/actor/_actor.py b/spinoff/actor/_actor.py
index <HASH>..<HASH> 100644
--- a/spinoff/actor/_actor.py
+++ b/spinoff/actor/_actor.py
@@ -1161,7 +1161,7 @@ class Cell(_BaseCell):
return self._child_name_gen.next()
def __repr__(self):
- return "<cell:%s@%s>" % (type(self.actor).__... | Made Cell.__repr__ always return a consistent representation with both an actor class and a Props instance | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20,8 @@ setup(
"Topic :: Software Development :: Disassemblers"
],
tests_require=[
- 'pytest'
+ 'pytest',
+ 'pytest-cov'
],
extras_require={
'dev': [ | Ensure pytest-cov is installed when tests are run. | py |
diff --git a/src/pylexibank/lingpy_util.py b/src/pylexibank/lingpy_util.py
index <HASH>..<HASH> 100644
--- a/src/pylexibank/lingpy_util.py
+++ b/src/pylexibank/lingpy_util.py
@@ -53,6 +53,15 @@ def test_sequence(segments, analysis=None, model='dolgo'):
"""
analysis = analysis or TranscriptionAnalysis()
+ ... | Catching bad input sequences (raises tests as required). | py |
diff --git a/www/src/Lib/_struct.py b/www/src/Lib/_struct.py
index <HASH>..<HASH> 100644
--- a/www/src/Lib/_struct.py
+++ b/www/src/Lib/_struct.py
@@ -439,6 +439,23 @@ def _clearcache():
"Clear the internal cache."
# No cache in this implementation
+class Struct:
+
+ def __init__(self, fmt):
+ ... | Fixes issue #<I> : "struct" module is missing the "Struct" class | py |
diff --git a/luigi/contrib/redshift.py b/luigi/contrib/redshift.py
index <HASH>..<HASH> 100644
--- a/luigi/contrib/redshift.py
+++ b/luigi/contrib/redshift.py
@@ -84,6 +84,20 @@ class S3CopyToTable(rdbms.CopyToTable):
"""
return ''
+ def do_truncate_table(self):
+ """
+ Return True ... | Add support for table truncation | py |
diff --git a/sovrin_client/agent/agent_prover.py b/sovrin_client/agent/agent_prover.py
index <HASH>..<HASH> 100644
--- a/sovrin_client/agent/agent_prover.py
+++ b/sovrin_client/agent/agent_prover.py
@@ -82,7 +82,7 @@ class AgentProver:
# we need to load the request into memory, then call
# signAndSend... | minor comment changes in agent_prover | py |
diff --git a/openquake/calculators/risk/scenario/core.py b/openquake/calculators/risk/scenario/core.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/risk/scenario/core.py
+++ b/openquake/calculators/risk/scenario/core.py
@@ -178,7 +178,7 @@ class ScenarioRiskCalculator(general.BaseRiskCalculator):
vu... | Updated the scenario calc also (but there's still no ****ing test coverage for most of the this calculator) Former-commit-id: 5aa2f<I>c6c5f<I>ba6a<I>ccd9ee<I>f | py |
diff --git a/exporters/__init__.py b/exporters/__init__.py
index <HASH>..<HASH> 100644
--- a/exporters/__init__.py
+++ b/exporters/__init__.py
@@ -218,14 +218,14 @@ class MercurialExporter(_Exporter):
class GitExporter(_Exporter):
def __init__(self):
- self.check_install('Git', '1.6', ['git'])
+ s... | Use the git on Windows path for the check and not just the run itself | py |
diff --git a/salt/modules/ddns.py b/salt/modules/ddns.py
index <HASH>..<HASH> 100644
--- a/salt/modules/ddns.py
+++ b/salt/modules/ddns.py
@@ -153,6 +153,7 @@ def delete(zone, name, rdtype=None, data=None, nameserver='127.0.0.1'):
salt ns1 ddns.delete example.com host1 A
'''
+ name = str(name)
f... | ddns: ensure name is str | py |
diff --git a/functionfs/__init__.py b/functionfs/__init__.py
index <HASH>..<HASH> 100644
--- a/functionfs/__init__.py
+++ b/functionfs/__init__.py
@@ -538,8 +538,8 @@ def serialise(structure):
Does not copy memory.
"""
return ctypes.cast(
- pointer(structure),
- POINTER(ctypes.c_char * ctyp... | functionfs: Fix some more NameErrors. | py |
diff --git a/ColonyDSL/Type/Grammar/Result.py b/ColonyDSL/Type/Grammar/Result.py
index <HASH>..<HASH> 100644
--- a/ColonyDSL/Type/Grammar/Result.py
+++ b/ColonyDSL/Type/Grammar/Result.py
@@ -58,7 +58,7 @@ class DiscreteGrammarResult(GrammarResult):
#a list of (begin, end, group=None)
return {}
-cla... | renamed DiscreteGrammarResult -> ContinuousGrammarResult | py |
diff --git a/filedownload.py b/filedownload.py
index <HASH>..<HASH> 100644
--- a/filedownload.py
+++ b/filedownload.py
@@ -40,8 +40,7 @@ from invenio.utils.url import make_invenio_opener
URL_OPENER = make_invenio_opener('filedownloadutils')
from invenio.config import (CFG_TMPSHAREDDIR,
- ... | legacy: WebSubmit removal * INCOMPATIBLE Removes legacy WebSubmit together with file convertors. (addresses #<I>) | py |
diff --git a/rootpy/plotting/canvas.py b/rootpy/plotting/canvas.py
index <HASH>..<HASH> 100644
--- a/rootpy/plotting/canvas.py
+++ b/rootpy/plotting/canvas.py
@@ -33,6 +33,8 @@ class Pad(_PadBase, QROOT.TPad):
def __init__(self, *args, **kwargs):
+ # trigger finalSetup
+ ROOT.kTRUE
super... | trigger finalSetup in Pad and Canvas init | py |
diff --git a/baron/grammator_operators.py b/baron/grammator_operators.py
index <HASH>..<HASH> 100644
--- a/baron/grammator_operators.py
+++ b/baron/grammator_operators.py
@@ -50,15 +50,16 @@ def include_operators(pg):
@pg.production("test : or_test IF or_test ELSE test")
def ternary_operator_node((first, if... | [mod] continue refactoring | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.