diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/code/map_sites.py b/code/map_sites.py
index <HASH>..<HASH> 100644
--- a/code/map_sites.py
+++ b/code/map_sites.py
@@ -21,18 +21,25 @@ for f in files:
# names.append(meta.get_title()) #Too long.
names.append(f[-13:-9])
+print('Corners of coords found:')
+print(min(lons),max(lons),min(lats),ma... | Debugging/mapping chatter useful for debugging, but as blue marble mapping is *really slow*, also useful user feedback. Not logging. | py |
diff --git a/bokeh/util/api_crawler.py b/bokeh/util/api_crawler.py
index <HASH>..<HASH> 100644
--- a/bokeh/util/api_crawler.py
+++ b/bokeh/util/api_crawler.py
@@ -52,8 +52,7 @@ class APICrawler(object):
def get_functions(self, source):
# For a given source, look for functions and return those functions as... | Remove redundant function redeclaration. | py |
diff --git a/spyderlib/widgets/qteditor/qteditor.py b/spyderlib/widgets/qteditor/qteditor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/qteditor/qteditor.py
+++ b/spyderlib/widgets/qteditor/qteditor.py
@@ -100,7 +100,7 @@ class QtEditor(TextEditBaseWidget):
self.color_scheme = ('IDLE', 'Pydev', 'Emacs... | QtEditor: changed default colors for current line | py |
diff --git a/tensor2tensor/models/research/next_frame.py b/tensor2tensor/models/research/next_frame.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/models/research/next_frame.py
+++ b/tensor2tensor/models/research/next_frame.py
@@ -677,6 +677,7 @@ class NextFrameStochastic(NextFrameBasic):
tf.round(
... | Log the number of ground_truth frames fed at every step. PiperOrigin-RevId: <I> | py |
diff --git a/audioSegmentation.py b/audioSegmentation.py
index <HASH>..<HASH> 100644
--- a/audioSegmentation.py
+++ b/audioSegmentation.py
@@ -351,7 +351,9 @@ def hmmSegmentation(wavFileName, hmmModelName, PLOT = False, gtFileName = ""):
#Features = audioFeatureExtraction.stFeatureExtraction(x, Fs, 0.050*Fs, 0.050*Fs... | hmm segmentation: silence as speech! | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -65,6 +65,7 @@ setup(
'serialization', 'rest', 'json', 'api', 'marshal',
'marshalling', 'deserialization', 'validation', 'schema',
],
+ python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.... | Add python_requires to help pip | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -141,10 +141,10 @@ sys.path.append(os.path.abspath('sphinxext'))
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
... | Got rid of some extensions we're not sure we're using | py |
diff --git a/tests/test_template.py b/tests/test_template.py
index <HASH>..<HASH> 100644
--- a/tests/test_template.py
+++ b/tests/test_template.py
@@ -3,7 +3,7 @@ from uricore import URI, IRI
from nose.tools import eq_
from uricore.template import uri_template
-class CompatiblityOrderedDict(object):
+class Ordered... | best not to have custom behavior for different python version. | py |
diff --git a/phonenumber_field/widgets.py b/phonenumber_field/widgets.py
index <HASH>..<HASH> 100644
--- a/phonenumber_field/widgets.py
+++ b/phonenumber_field/widgets.py
@@ -31,8 +31,7 @@ class PhonePrefixSelect(Select):
language = translation.get_language() or settings.LANGUAGE_CODE
locale = babel.L... | Remove intermediary assignment in PhonePrefixSelect `region` is not reused, can directly assign to the `initial` variable. Reviewed-by: stefanfoulis | py |
diff --git a/galpy/potential_src/KGPotential.py b/galpy/potential_src/KGPotential.py
index <HASH>..<HASH> 100644
--- a/galpy/potential_src/KGPotential.py
+++ b/galpy/potential_src/KGPotential.py
@@ -1,11 +1,19 @@
import scipy as sc
from linearPotential import linearPotential
class KGPotential(linearPotential):
- ... | potential formatting for KGPotential, fixes #<I> | py |
diff --git a/vcr/stubs/__init__.py b/vcr/stubs/__init__.py
index <HASH>..<HASH> 100644
--- a/vcr/stubs/__init__.py
+++ b/vcr/stubs/__init__.py
@@ -32,7 +32,7 @@ def parse_headers(header_list):
headers = b"".join(header_list) + b"\r\n"
return compat.get_httpmessage(headers)
-class VCRHTTPResponse(HTTPRespons... | Don't try to inherit from the real response object | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ setup(
author = u'Juan Pedro Fisanotti',
author_email = 'fisadev@gmail.com',
url='http://github.com/simpleai-team/simpleai',
- packages=['simpleai', ],
+ packages=['simpleai', 'simpleai.sear... | Fixed setup.py to be able to find the subpackages on the pythonpath | py |
diff --git a/tools/mpremote/mpremote/pyboardextended.py b/tools/mpremote/mpremote/pyboardextended.py
index <HASH>..<HASH> 100644
--- a/tools/mpremote/mpremote/pyboardextended.py
+++ b/tools/mpremote/mpremote/pyboardextended.py
@@ -142,7 +142,13 @@ class RemoteFile(uio.IOBase):
self.close()
def ioctl(sel... | tools/mpremote: Implement seek and flush in ioctl method. Fixes issue #<I>. | py |
diff --git a/mpop/satellites/__init__.py b/mpop/satellites/__init__.py
index <HASH>..<HASH> 100644
--- a/mpop/satellites/__init__.py
+++ b/mpop/satellites/__init__.py
@@ -52,6 +52,7 @@ def get_custom_composites(name):
return []
try:
+ name = name.replace("/", "")
module = __import__(modu... | remove "/" from instrument names when loading custom composites. | py |
diff --git a/pycm/pycm_output.py b/pycm/pycm_output.py
index <HASH>..<HASH> 100644
--- a/pycm/pycm_output.py
+++ b/pycm/pycm_output.py
@@ -348,7 +348,7 @@ def sparse_table_print(classes, table):
del sparse_table[x]
actual_classes.remove(x)
if col_sum == 0:
- for row in clas... | fix : class replaced by actual_class | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -89,8 +89,7 @@ setup(
'cdm': ['pyproj>=1.9.4'],
'dev': ['ipython[all]>=3.1'],
'doc': ['sphinx>=1.3', 'ipython[all]>=3.1'],
- # Until we have 0.13.1 on pypi, need to limit shapely
- 'exa... | MNT: Remove unneeded Cartopy pinning. | py |
diff --git a/fuzzyfinder/main.py b/fuzzyfinder/main.py
index <HASH>..<HASH> 100755
--- a/fuzzyfinder/main.py
+++ b/fuzzyfinder/main.py
@@ -17,7 +17,7 @@ def fuzzyfinder(input, collection, accessor=lambda x: x):
suggestions = []
input = str(input) if not isinstance(input, str) else input
pat = '.*?'.join(... | fix compatibility issue with python <I> | py |
diff --git a/fut/core.py b/fut/core.py
index <HASH>..<HASH> 100644
--- a/fut/core.py
+++ b/fut/core.py
@@ -175,6 +175,7 @@ class Core(object):
# TODO: 'We sent a security code to your email' / 'We sent a security code to your ?'
# TODO: pick code from codes.txt?
if not code:
+ ... | core: save session if code is not provided but required | py |
diff --git a/ayrton/tests/test_expansion.py b/ayrton/tests/test_expansion.py
index <HASH>..<HASH> 100644
--- a/ayrton/tests/test_expansion.py
+++ b/ayrton/tests/test_expansion.py
@@ -133,13 +133,13 @@ class SequenceExpressionExpansion(unittest.TestCase):
def test_simple (self):
self.assertEqual (bash ('{1... | [*] disable tetss for which we still don't have any code. | py |
diff --git a/dockerpty/pty.py b/dockerpty/pty.py
index <HASH>..<HASH> 100644
--- a/dockerpty/pty.py
+++ b/dockerpty/pty.py
@@ -139,8 +139,9 @@ class PseudoTerminal(object):
if not self.container_info()['State']['Running']:
self.client.start(self.container, **kwargs)
+ flags = [io.set_bloc... | Fix flags variable being set If an exception is raised, this is thrown: UnboundLocalError: local variable 'flags' referenced before assignment | py |
diff --git a/python/herald/shell.py b/python/herald/shell.py
index <HASH>..<HASH> 100644
--- a/python/herald/shell.py
+++ b/python/herald/shell.py
@@ -5,7 +5,7 @@ Pelix Shell commands for Herald
"""
# Herald
-from herald.exceptions import NoTransport
+from herald.exceptions import NoTransport, HeraldTimeout
import... | Added a timeout to shell command send, to avoid blocking the console | py |
diff --git a/tests/integration/states/test_lxd_container.py b/tests/integration/states/test_lxd_container.py
index <HASH>..<HASH> 100644
--- a/tests/integration/states/test_lxd_container.py
+++ b/tests/integration/states/test_lxd_container.py
@@ -5,10 +5,14 @@ Integration tests for the lxd states
# Import Python Libs
... | Mark lxd_container integration tests as flaky | py |
diff --git a/sc2common/containers.py b/sc2common/containers.py
index <HASH>..<HASH> 100644
--- a/sc2common/containers.py
+++ b/sc2common/containers.py
@@ -56,7 +56,11 @@ class RestrictedType(object):
return not (self == other)
def __lt__(self, other):
"""allow basic sorting"""
- return sel... | - bug fix to allow None values to compare properly | py |
diff --git a/openstack_dashboard/dashboards/project/access_and_security/floating_ips/workflows.py b/openstack_dashboard/dashboards/project/access_and_security/floating_ips/workflows.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/dashboards/project/access_and_security/floating_ips/workflows.py
+++ b/openstack_... | Changed message when there are no IP available addresses When trying to associate a floating IP with an instance, when there are no more availables, the error message was changed. Change-Id: I<I>a9c5ec<I>eea4ac<I>cb7f<I>a9e<I>c<I>d8d Closes-Bug: #<I> | py |
diff --git a/zappa/core.py b/zappa/core.py
index <HASH>..<HASH> 100644
--- a/zappa/core.py
+++ b/zappa/core.py
@@ -910,16 +910,17 @@ class Zappa(object):
vpc_config = {}
if not self.credentials_arn:
self.get_credentials_arn()
- if not aws_environment_variables:
- aws... | Splintering aws_environment_variables from environment_variables (to avoid overwriting AWS native env vars). | py |
diff --git a/vent/api/plugin_helpers.py b/vent/api/plugin_helpers.py
index <HASH>..<HASH> 100644
--- a/vent/api/plugin_helpers.py
+++ b/vent/api/plugin_helpers.py
@@ -6,7 +6,7 @@ import shlex
from ast import literal_eval
from os import chdir, getcwd, walk
from os.path import join
-from subprocess import check_output... | update gpu start to match rq-worker | py |
diff --git a/pycbc/inference/prior.py b/pycbc/inference/prior.py
index <HASH>..<HASH> 100644
--- a/pycbc/inference/prior.py
+++ b/pycbc/inference/prior.py
@@ -346,6 +346,8 @@ class Gaussian(Uniform):
else:
return -numpy.inf
+ __call__ = logpdf
+
def rvs(self, size=1, param=None):
... | Force __call__ = logpdf for Gaussian distribution (#<I>) Forces ``__call__ = logpdf``. Since ``logpdf`` was overwritten from the superclass it wasn't automatically set. | py |
diff --git a/buildbot/status/web/grid.py b/buildbot/status/web/grid.py
index <HASH>..<HASH> 100644
--- a/buildbot/status/web/grid.py
+++ b/buildbot/status/web/grid.py
@@ -304,7 +304,7 @@ class TransposedGridStatusResource(HtmlResource, GridStatusMixin):
sortedBuilderNames = status.getBuilderNames()[:]
... | Fix transposed grid to not crash when specifying categories. | py |
diff --git a/adafruit_onewire/bus.py b/adafruit_onewire/bus.py
index <HASH>..<HASH> 100644
--- a/adafruit_onewire/bus.py
+++ b/adafruit_onewire/bus.py
@@ -14,7 +14,7 @@ Provide access to a 1-Wire bus.
__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_OneWire.git"
-import bu... | use onewireio instead of busio | py |
diff --git a/tusclient/request.py b/tusclient/request.py
index <HASH>..<HASH> 100644
--- a/tusclient/request.py
+++ b/tusclient/request.py
@@ -22,6 +22,7 @@ class TusRequest(object):
self.handle = pycurl.Curl()
self.response_headers = {}
self.output = six.StringIO()
+ self._status_code... | Prevent "no curl handle" exception | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,6 +25,12 @@ setup(
author="Adam Johnson",
author_email="me@adamj.eu",
url="https://github.com/adamchainz/flake8-tidy-imports",
+ project_urls={
+ "Changelog": (
+ "https://github.com/ada... | Add PyPI changelog link (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -56,13 +56,16 @@ def main_win32():
def pkgconfig(*packages, **kw):
- """Based on http://code.activestate.com/recipes/502261-python-distutils-pkg-config/"""
+ """Based on http://code.activestate.com/recipes/502261-py... | Make setup.py work with newer ubuntu | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ def read(fname):
setup(
name = "cmsplugin-filer",
- version = "0.0.1a",
+ version = "0.0.2a",
url = 'http://github.com/stefanfoulis/django-filer-cmsplugins',
license = 'BSD',
descripti... | version bump to <I>a | py |
diff --git a/troposphere/apigateway.py b/troposphere/apigateway.py
index <HASH>..<HASH> 100644
--- a/troposphere/apigateway.py
+++ b/troposphere/apigateway.py
@@ -197,6 +197,8 @@ class Integration(AWSProperty):
props = {
"CacheKeyParameters": ([basestring], False),
"CacheNamespace": (basestring, ... | Added ConnectionId and ConnectionType to API GW method integration (#<I>) | py |
diff --git a/py/selenium/webdriver/phantomjs/service.py b/py/selenium/webdriver/phantomjs/service.py
index <HASH>..<HASH> 100755
--- a/py/selenium/webdriver/phantomjs/service.py
+++ b/py/selenium/webdriver/phantomjs/service.py
@@ -102,7 +102,7 @@ class Service(object):
try:
if self.process:
... | py: Killing phantomjs in the same manner as other drivers (more Windows-compatible way) | py |
diff --git a/salt/roster/flat.py b/salt/roster/flat.py
index <HASH>..<HASH> 100644
--- a/salt/roster/flat.py
+++ b/salt/roster/flat.py
@@ -18,7 +18,9 @@ def targets(tgt, tgt_type='glob', **kwargs):
Return the targets from the flat yaml file, checks opts for location but
defaults to /etc/salt/roster
'''
-... | Allow for roster_file option in master config | py |
diff --git a/tests/test_parse.py b/tests/test_parse.py
index <HASH>..<HASH> 100644
--- a/tests/test_parse.py
+++ b/tests/test_parse.py
@@ -1,7 +1,7 @@
from hypothesis_auto import auto_pytest_magic
from isort import parse
-from isort.settings import default
+from isort.settings import Config
TEST_CONTENTS = """
... | Fix use of default config to match new refactor | py |
diff --git a/pypercube/expression.py b/pypercube/expression.py
index <HASH>..<HASH> 100644
--- a/pypercube/expression.py
+++ b/pypercube/expression.py
@@ -39,6 +39,14 @@ class CompoundMetricExpression(object):
self.operator = operator
self.metric2 = metric2
+ def __eq__(self, other):
+ """... | Add __eq__ to CompoundMetricExpression. | py |
diff --git a/tests/_processors/test_when.py b/tests/_processors/test_when.py
index <HASH>..<HASH> 100644
--- a/tests/_processors/test_when.py
+++ b/tests/_processors/test_when.py
@@ -156,7 +156,7 @@ def test_item_many_eggs(testapp):
[r"item.author == 'yoda'", "item.source.suffix == '.md'"],
id... | Fix deprecation warnings in tests | py |
diff --git a/setuptools/config.py b/setuptools/config.py
index <HASH>..<HASH> 100644
--- a/setuptools/config.py
+++ b/setuptools/config.py
@@ -262,6 +262,7 @@ class ConfigHandler(object):
filepaths = value[len(include_directive):]
filepaths = filepaths.split(',')
+ filepaths = map(str, filepa... | Convert path to str, which is needed under Py 2 | py |
diff --git a/pyecore/resources/xmi.py b/pyecore/resources/xmi.py
index <HASH>..<HASH> 100644
--- a/pyecore/resources/xmi.py
+++ b/pyecore/resources/xmi.py
@@ -300,7 +300,8 @@ class XMIResource(Resource):
self.register_eobject_epackage(eobj)
old_root_node = self._go_across(root)
- ... | Remove double definition of some namespace in XMI serialization | py |
diff --git a/py/_plugin/pytest_junitxml.py b/py/_plugin/pytest_junitxml.py
index <HASH>..<HASH> 100644
--- a/py/_plugin/pytest_junitxml.py
+++ b/py/_plugin/pytest_junitxml.py
@@ -166,6 +166,7 @@ class LogXML(object):
logfile.writelines(self.test_logs)
logfile.write('</testsuite>')
logfile.clo... | don't print empty lines with junitxml file printing --HG-- branch : trunk | py |
diff --git a/extra_views_tests/models.py b/extra_views_tests/models.py
index <HASH>..<HASH> 100644
--- a/extra_views_tests/models.py
+++ b/extra_views_tests/models.py
@@ -22,6 +22,7 @@ STATUS_CHOICES = (
class Order(models.Model):
name = models.CharField(max_length=255)
+ customer = models.CharField(max_leng... | Added new models to assist with examples in documentation. | py |
diff --git a/mediafile.py b/mediafile.py
index <HASH>..<HASH> 100644
--- a/mediafile.py
+++ b/mediafile.py
@@ -154,10 +154,12 @@ def _safe_cast(out_type, val):
return int(val)
else:
# Process any other type as a string.
- if not isinstance(val, six.string_types):
+ ... | properly safe cast unicode as int | py |
diff --git a/nplusone/core/stack.py b/nplusone/core/stack.py
index <HASH>..<HASH> 100644
--- a/nplusone/core/stack.py
+++ b/nplusone/core/stack.py
@@ -9,7 +9,7 @@ def get_caller():
return next(
(
each for each in reversed(frames)
- if not any(pattern in each[1] for pattern in patte... | Ignore stack frame with empty code in pypy. | py |
diff --git a/mythril/analysis/report.py b/mythril/analysis/report.py
index <HASH>..<HASH> 100644
--- a/mythril/analysis/report.py
+++ b/mythril/analysis/report.py
@@ -76,9 +76,12 @@ class Issue:
@property
def transaction_sequence_jsonv2(self):
- """ Returns the transaction sequence in json with pre-g... | Improve reporting (#<I>) | py |
diff --git a/ca/django_ca/urls.py b/ca/django_ca/urls.py
index <HASH>..<HASH> 100644
--- a/ca/django_ca/urls.py
+++ b/ca/django_ca/urls.py
@@ -27,6 +27,9 @@ if ca_settings.CA_PROVIDE_GENERIC_CRL is True: # pragma: no branch
urlpatterns.append(
url(r'^crl/(?P<serial>[0-9A-F:]+)/$', views.CertificateRevoca... | add CRL list for child CAs as well | py |
diff --git a/openquake/baselib/general.py b/openquake/baselib/general.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/general.py
+++ b/openquake/baselib/general.py
@@ -257,6 +257,13 @@ def assert_close(a, b, rtol=1e-07, atol=0, context=None):
# shortcut
numpy.testing.assert_allclose(a, b, rtol,... | Fixed assert_close for Python 3 too | py |
diff --git a/m2s3/app.py b/m2s3/app.py
index <HASH>..<HASH> 100755
--- a/m2s3/app.py
+++ b/m2s3/app.py
@@ -7,6 +7,7 @@ Author: Alejandro Ricoveri <alejandro.ricoveri@blanclink.com>
Main module
"""
+import os
import sys
import traceback
#TODO replace log with logging https://docs.python.org/3.4/howto/logging.html... | Configuration file absolute path is determined before trying to use it | py |
diff --git a/python/ray/util/client/worker.py b/python/ray/util/client/worker.py
index <HASH>..<HASH> 100644
--- a/python/ray/util/client/worker.py
+++ b/python/ray/util/client/worker.py
@@ -65,6 +65,7 @@ class Worker:
conn_attempts += 1
try:
grpc.channel_ready_future(self.cha... | [ray_client]: Fix multiple attempts at checking connection (#<I>) | py |
diff --git a/orator/connections/mysql_connection.py b/orator/connections/mysql_connection.py
index <HASH>..<HASH> 100644
--- a/orator/connections/mysql_connection.py
+++ b/orator/connections/mysql_connection.py
@@ -62,9 +62,9 @@ class MySQLConnection(Connection):
return super(MySQLConnection, self)._get_cu... | Use decode() in python2, not in python3 | py |
diff --git a/source/awesome_tool/mvc/models/state_machine.py b/source/awesome_tool/mvc/models/state_machine.py
index <HASH>..<HASH> 100755
--- a/source/awesome_tool/mvc/models/state_machine.py
+++ b/source/awesome_tool/mvc/models/state_machine.py
@@ -30,7 +30,7 @@ class StateMachineModel(ModelMT):
self.state_m... | Fix bug of non refreshing graphical editor The graphical editor was not redrawn when any change was done in the state machine. This was due to a commented line, preventing the state machine model from observing itself. This is now fixed by undoing the comment. | py |
diff --git a/tests/integration/pipeline/base.py b/tests/integration/pipeline/base.py
index <HASH>..<HASH> 100644
--- a/tests/integration/pipeline/base.py
+++ b/tests/integration/pipeline/base.py
@@ -85,7 +85,7 @@ class BootstrapIntegBase(PipelineBase):
session = boto3.session.Session()
s3_clie... | Fixing bug in bucket cleanup. (#<I>) | py |
diff --git a/src/super_archives/management/commands/import_emails.py b/src/super_archives/management/commands/import_emails.py
index <HASH>..<HASH> 100644
--- a/src/super_archives/management/commands/import_emails.py
+++ b/src/super_archives/management/commands/import_emails.py
@@ -207,6 +207,7 @@ class Command(BaseCom... | update message block as soons as message is imported | py |
diff --git a/alot/completion.py b/alot/completion.py
index <HASH>..<HASH> 100644
--- a/alot/completion.py
+++ b/alot/completion.py
@@ -292,7 +292,8 @@ class CommandLineCompleter(Completer):
# search
elif self.mode == 'search' and cmd == 'refine':
res = self._querycompleter.com... | completion for new tagging commands For tag,untag,retag and toggletags, both in search and thread modes, the parameter is completed to a comma separated list of tagstrings already present in the index. issue #<I> | py |
diff --git a/panedr.py b/panedr.py
index <HASH>..<HASH> 100644
--- a/panedr.py
+++ b/panedr.py
@@ -1,3 +1,25 @@
+# Panedr — a library to manipulate Gromacs EDR file in python
+# Copyright (C) 2016 Jonathan Barnoud
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the G... | Add the licence on top of the library | py |
diff --git a/airflow/models.py b/airflow/models.py
index <HASH>..<HASH> 100644
--- a/airflow/models.py
+++ b/airflow/models.py
@@ -226,16 +226,19 @@ class DagBag(object):
patterns += [p for p in f.read().split('\n') if p]
f.close()
for f in files:
- ... | Wrapping scheduler main file loop in try statement | py |
diff --git a/otherfile/version_check.py b/otherfile/version_check.py
index <HASH>..<HASH> 100644
--- a/otherfile/version_check.py
+++ b/otherfile/version_check.py
@@ -6,7 +6,7 @@ import codecs
from art.art_param import *
Failed = 0
-VERSION = "4.1"
+VERSION = "4.2"
README_ITEMS = ['<td align="center">{0}</td>'.f... | rel : migrate to version <I> | py |
diff --git a/tests/unit/states/test_mount.py b/tests/unit/states/test_mount.py
index <HASH>..<HASH> 100644
--- a/tests/unit/states/test_mount.py
+++ b/tests/unit/states/test_mount.py
@@ -451,18 +451,14 @@ class MountTestCase(TestCase, LoaderModuleMockMixin):
'''
Test to verify that a device is mounted... | removing os.path.realpath, which was breaking tests on Windows and is not necessary for this test to run on Linux. removing unneeded test data. | py |
diff --git a/pysat/tests/test_params.py b/pysat/tests/test_params.py
index <HASH>..<HASH> 100644
--- a/pysat/tests/test_params.py
+++ b/pysat/tests/test_params.py
@@ -70,6 +70,10 @@ class TestBasics():
def test_str(self):
"""Ensure str method works"""
+
+ # include a user parameter as well
+ ... | TST: Added test for str printing with a custom user value | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -549,7 +549,7 @@ def main():
packages=[__pkg_data__.MODULE.__name__],
scripts=["%s.py" % i.__name__ for i in __pkg_data__.SCRIPTS],
license=__pkg_data__.MODULE.__license__,
- keywords=__pkg_da... | Keywords for setup() should be space separated It is apparently customary to use spaces, not commas, to separate keywords. | py |
diff --git a/dtool_create/dataset.py b/dtool_create/dataset.py
index <HASH>..<HASH> 100644
--- a/dtool_create/dataset.py
+++ b/dtool_create/dataset.py
@@ -239,7 +239,9 @@ def freeze(dataset_uri):
click.secho(dt.strftime('%Y-%m-%d %H:%M:%S UTC'))
finally:
sys.exit()
- proto_dataset.... | Add progressbar to freeze and copy commands | py |
diff --git a/src/pyshark/packet/fields.py b/src/pyshark/packet/fields.py
index <HASH>..<HASH> 100644
--- a/src/pyshark/packet/fields.py
+++ b/src/pyshark/packet/fields.py
@@ -57,7 +57,11 @@ class LayerField(SlotsPickleable):
"""
Converts this field to binary (assuming it's a binary string)
""... | Handle case when 'hex' string is of odd length (to pad with zeros) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -56,7 +56,7 @@ setup(
data_files=[(
(BASE_DIR, ['data/nssm_original.exe'])
)],
- install_requires=['indy-plenum-dev==1.4.397',
+ install_requires=['indy-plenum-dev==1.4.398',
'in... | repin to pickup a fix in plenum | py |
diff --git a/dipper/sources/EOM.py b/dipper/sources/EOM.py
index <HASH>..<HASH> 100644
--- a/dipper/sources/EOM.py
+++ b/dipper/sources/EOM.py
@@ -121,7 +121,7 @@ class EOM(PostgreSQLSource):
IAO:definition Literal(objective_def. subjective def)
foaf:depiction Literal(small_image_url),... | change dc:comment to rdfs:comment in a doc string | py |
diff --git a/tests/test_playlist.py b/tests/test_playlist.py
index <HASH>..<HASH> 100644
--- a/tests/test_playlist.py
+++ b/tests/test_playlist.py
@@ -95,6 +95,9 @@ def test_copyToUser(plex, show, fresh_plex, shared_username):
def test_smart_playlist(plex, movies):
- pl = plex.createPlaylist(title='smart_playli... | Remove playlist created during tests (#<I>) | py |
diff --git a/pptx/enum/shapes.py b/pptx/enum/shapes.py
index <HASH>..<HASH> 100644
--- a/pptx/enum/shapes.py
+++ b/pptx/enum/shapes.py
@@ -330,7 +330,7 @@ class MSO_AUTO_SHAPE_TYPE(XmlEnumeration):
'Terminator flowchart symbol'
),
XmlMappedEnumMember(
- 'FOLDED_CORNER', 16, 'fo... | fix: typo in MSO_AUTO_SHAPE_TYPE enumeration Shape type key 'foldedCorner' was misspelled as 'folderCorner'. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ EXTRAS_REQUIRE = {
"sphinx-issues==1.2.0",
"alabaster==0.7.12",
"sphinx-version-warning==1.1.2",
- "autodocsumm==0.2.1",
+ "autodocsumm==0.2.2",
],
}
EXTRAS_REQUIR... | Upgrade autodocsumm to fix #<I> (#<I>) | py |
diff --git a/tests/shipane_sdk/matchers/dataframe_matchers.py b/tests/shipane_sdk/matchers/dataframe_matchers.py
index <HASH>..<HASH> 100644
--- a/tests/shipane_sdk/matchers/dataframe_matchers.py
+++ b/tests/shipane_sdk/matchers/dataframe_matchers.py
@@ -25,7 +25,7 @@ class HasColumnMatches(BaseMatcher):
self.... | Fix HasColumn matcher for dataframe with duplicated columns | py |
diff --git a/keyboard/keyboard.py b/keyboard/keyboard.py
index <HASH>..<HASH> 100644
--- a/keyboard/keyboard.py
+++ b/keyboard/keyboard.py
@@ -233,6 +233,7 @@ def remove_hotkey(hotkey):
unhook(hotkey)
else:
unhook(_hotkeys[hotkey])
+ del _hotkeys[hotkey]
# Alias.
unhook_key = remove_ho... | Fix bug where hotkeys were not unregistered correctl | py |
diff --git a/fireplace/card.py b/fireplace/card.py
index <HASH>..<HASH> 100644
--- a/fireplace/card.py
+++ b/fireplace/card.py
@@ -810,9 +810,10 @@ class Weapon(PlayableCard):
def toBeDestroyed(self):
return self.durability == 0
- def destroy(self):
- self.controller.weapon = None
- super().destroy()
+ def _se... | Update Player.weapon when the player's weapon changes zones It can't realistically happen that a weapon is moved out of the PLAY Zone without being destroyed, but this is more correct. | py |
diff --git a/tests/implemented.py b/tests/implemented.py
index <HASH>..<HASH> 100755
--- a/tests/implemented.py
+++ b/tests/implemented.py
@@ -3,8 +3,6 @@ import os
import sys; sys.path.append("..")
from fireplace import cards
from fireplace.cards import debug, game, classic, naxxramas, gvg, removed
-from fireplace.... | Update the implemented script to the newer APIs | py |
diff --git a/MuseParse/classes/Output/LilypondOutput.py b/MuseParse/classes/Output/LilypondOutput.py
index <HASH>..<HASH> 100644
--- a/MuseParse/classes/Output/LilypondOutput.py
+++ b/MuseParse/classes/Output/LilypondOutput.py
@@ -61,7 +61,7 @@ class LilypondRenderer(object):
# subprocess.Popen(['sudo', self.l... | issue fix #<I> added space which previously caused command to be incorrect | py |
diff --git a/jplephem/commandline.py b/jplephem/commandline.py
index <HASH>..<HASH> 100644
--- a/jplephem/commandline.py
+++ b/jplephem/commandline.py
@@ -107,7 +107,9 @@ def parse_date(s):
if len(fields) < 1 or len(fields) > 3:
E = argparse.ArgumentTypeError
raise E('specify each date as YYYY or... | Have "excerpt" print JD it computes from each date | py |
diff --git a/web3/providers/base.py b/web3/providers/base.py
index <HASH>..<HASH> 100644
--- a/web3/providers/base.py
+++ b/web3/providers/base.py
@@ -77,8 +77,8 @@ class JSONBaseProvider(BaseProvider):
response = self.make_request('web3_clientVersion', [])
except IOError:
return Fals... | Remove unreachable code Also, remove unnecessary else clause that tends to obscure that code. | py |
diff --git a/agentarchives/archivists_toolkit/atk.py b/agentarchives/archivists_toolkit/atk.py
index <HASH>..<HASH> 100644
--- a/agentarchives/archivists_toolkit/atk.py
+++ b/agentarchives/archivists_toolkit/atk.py
@@ -8,7 +8,7 @@ logger.addHandler(logging.NullHandler())
def connect_db(atdbhost, atdbport, atdbuser, at... | changes to atk upload from dev testing | py |
diff --git a/tango3k.py b/tango3k.py
index <HASH>..<HASH> 100644
--- a/tango3k.py
+++ b/tango3k.py
@@ -7,6 +7,8 @@
TODO: OAuth, Streaming API?
+ NOTE: THIS IS EXPERIMENTAL.
+
Questions, comments? ryan@venodesigns.net
""" | Experimental version of Tango for Python 3k | py |
diff --git a/treeherder/model/derived/jobs.py b/treeherder/model/derived/jobs.py
index <HASH>..<HASH> 100644
--- a/treeherder/model/derived/jobs.py
+++ b/treeherder/model/derived/jobs.py
@@ -2601,11 +2601,6 @@ class JobsModel(TreeherderModelBase):
cache_data[key] = revision_hash
- cache.... | Bug <I> - Moved result_set revision hash cache step to after associated revision storage | py |
diff --git a/simplenote/simplenote.py b/simplenote/simplenote.py
index <HASH>..<HASH> 100644
--- a/simplenote/simplenote.py
+++ b/simplenote/simplenote.py
@@ -13,7 +13,7 @@ import urllib
import urllib2
from urllib2 import HTTPError
import base64
-from time import mktime
+import time
from datetime import datetime
... | Import time to suit commit fd8f<I>dd<I>df3acbce7b<I>cde<I>e8d Because I forgot to add it in to the previous commit! | py |
diff --git a/test/test_callback.py b/test/test_callback.py
index <HASH>..<HASH> 100644
--- a/test/test_callback.py
+++ b/test/test_callback.py
@@ -32,9 +32,9 @@ def test_callback_interrupt():
assert_raises(CallbackInterrupt, generic_callback_stop)
try:
generic_callback_stop()
- except CallbackInte... | [<I>] fixing Python3 bug in handling the CallbackInterrupt exception | py |
diff --git a/niworkflows/interfaces/masks.py b/niworkflows/interfaces/masks.py
index <HASH>..<HASH> 100644
--- a/niworkflows/interfaces/masks.py
+++ b/niworkflows/interfaces/masks.py
@@ -204,4 +204,24 @@ class TCompCorRPT(nrc.SegmentationRC, confounds.TCompCor):
NIWORKFLOWS_LOG.info('Generating report for tC... | Added simple interface for visualising masks. | py |
diff --git a/isochrones/starmodel.py b/isochrones/starmodel.py
index <HASH>..<HASH> 100644
--- a/isochrones/starmodel.py
+++ b/isochrones/starmodel.py
@@ -254,9 +254,19 @@ class StarModel(object):
age = self.sampler.flatchain[:,1]
feh = self.sampler.flatchain[:,2]
+ if... | allowed samples to return distance, AV | py |
diff --git a/indra/sources/biogrid.py b/indra/sources/biogrid.py
index <HASH>..<HASH> 100644
--- a/indra/sources/biogrid.py
+++ b/indra/sources/biogrid.py
@@ -140,7 +140,7 @@ class BiogridProcessor(object):
object.
"""
db_refs = {}
- if text_id != '-':
+ if text_id != '-' an... | Prevent biogrid from creating None TEXTs | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,5 +8,5 @@ setup(version='0',
author_email='tomasz@pozytywnie.pl',
packages=find_packages(),
test_suite="tests",
- licence="MIT",
+ license="MIT",
) | Dont use depercated licence. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,8 +28,13 @@ setup(
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
+ 'Programming Language :: Python :: 2.5',
+ 'Progr... | Updated the list of compatible Python versions. | py |
diff --git a/Adyen/adyen_log.py b/Adyen/adyen_log.py
index <HASH>..<HASH> 100644
--- a/Adyen/adyen_log.py
+++ b/Adyen/adyen_log.py
@@ -17,7 +17,6 @@ logger.setLevel(logging.DEBUG)
# logger.addHandler(fh)
# logger.info('Adyen Log of %s' % log_now)
-
def logname():
return LOG_FILENAME | Disabled logging for now, have to clearly define what is entered in the log, and make logging optional | py |
diff --git a/src/scs_core/position/gps_datum.py b/src/scs_core/position/gps_datum.py
index <HASH>..<HASH> 100644
--- a/src/scs_core/position/gps_datum.py
+++ b/src/scs_core/position/gps_datum.py
@@ -84,9 +84,9 @@ class GPSDatum(JSONable):
if not isinstance(other, Number):
raise TypeError(other)
... | Added averaging to GPSMonitor. | py |
diff --git a/indra/config.py b/indra/config.py
index <HASH>..<HASH> 100644
--- a/indra/config.py
+++ b/indra/config.py
@@ -24,15 +24,14 @@ if not os.path.isfile(config_path):
except Exception:
logger.warning('Could not copy default config file.')
-# Load the configuration file into the config_file dicti... | Fix a comment to a doc string. | py |
diff --git a/gwpy/segments/__init__.py b/gwpy/segments/__init__.py
index <HASH>..<HASH> 100644
--- a/gwpy/segments/__init__.py
+++ b/gwpy/segments/__init__.py
@@ -32,4 +32,5 @@ from .segments import (Segment, SegmentList, SegmentListDict)
from .flag import *
from .io import *
-__all__ = ['Segment', 'SegmentList', '... | segments: fix __all__ to include DataQualityDict | py |
diff --git a/paperwork_backend/img/page.py b/paperwork_backend/img/page.py
index <HASH>..<HASH> 100644
--- a/paperwork_backend/img/page.py
+++ b/paperwork_backend/img/page.py
@@ -106,13 +106,13 @@ class ImgPage(BasicPage):
return boxes
# fallback: old format: word boxes
# shou... | doc/img/boxes: don't display warning regarding old format if there is actually no boxes at all | py |
diff --git a/holoviews/operation/element.py b/holoviews/operation/element.py
index <HASH>..<HASH> 100644
--- a/holoviews/operation/element.py
+++ b/holoviews/operation/element.py
@@ -290,20 +290,6 @@ class gradient(ElementOperation):
value = param.String(default='Gradient', doc="""
The value assigned to the o... | Removed unnecessary wrap class method from gradient operation | py |
diff --git a/spyderlib/widgets/codeeditor/base.py b/spyderlib/widgets/codeeditor/base.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/codeeditor/base.py
+++ b/spyderlib/widgets/codeeditor/base.py
@@ -735,7 +735,7 @@ class TextEditBaseWidget(QPlainTextEdit):
def show_completion_list(self, completions, com... | Fixed Issue <I>: code-completion list is not shown if it contains the exact word being completed | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -29,7 +29,7 @@ setup(
],
keywords="automation testing sikuli",
packages=find_packages(exclude=['docs', 'tests']),
- install_requires=['pillow', 'numpy', 'opencv-python'],
+ install_requires=['requests', 'pillow', 'numpy'... | Added 'requests' as a dependency | py |
diff --git a/tests/integration-tests/pytest_integration_test.py b/tests/integration-tests/pytest_integration_test.py
index <HASH>..<HASH> 100644
--- a/tests/integration-tests/pytest_integration_test.py
+++ b/tests/integration-tests/pytest_integration_test.py
@@ -68,15 +68,13 @@ if (sys.version_info[0] == 2 and sys.vers... | pytest: fix pylint integration test after pytest-pylint-<I> | py |
diff --git a/kafka/cluster.py b/kafka/cluster.py
index <HASH>..<HASH> 100644
--- a/kafka/cluster.py
+++ b/kafka/cluster.py
@@ -199,20 +199,21 @@ class ClusterMetadata(object):
if not metadata.brokers:
log.warning("No broker metadata found in MetadataResponse")
+ _new_brokers = {}
... | Drop old brokers when rebuilding broker metadata (#<I>) | py |
diff --git a/twsslib.py b/twsslib.py
index <HASH>..<HASH> 100644
--- a/twsslib.py
+++ b/twsslib.py
@@ -44,6 +44,7 @@ class TextClassifier:
def is_positive(self, text):
return self.classifier.classify(self.extract_features(text))
-twss = TextClassifier()
-print twss.is_positive("That was not so... | Cleaned up testing code for standalone execution | py |
diff --git a/util/plot.py b/util/plot.py
index <HASH>..<HASH> 100644
--- a/util/plot.py
+++ b/util/plot.py
@@ -598,7 +598,7 @@ def sparse_matrices_patterns_with_differences(file, A, B, markersize=1,
_save_and_close_fig_with_kwargs(fig, file, **kwargs)
-def intervals(intervals, file, use_percent_ticks=False, ca... | API: util.plot.intervals: file is now first argument | py |
diff --git a/src/boost/python/device_proxy.py b/src/boost/python/device_proxy.py
index <HASH>..<HASH> 100644
--- a/src/boost/python/device_proxy.py
+++ b/src/boost/python/device_proxy.py
@@ -1186,6 +1186,9 @@ def __DeviceProxy__read_pipe(self, pipe_name, extract_as=ExtractAs.Numpy):
r = self.__read_pipe(pipe_name)... | Implement DeviceProxy read pipe as attribute access | py |
diff --git a/ella/ellaadmin/options.py b/ella/ellaadmin/options.py
index <HASH>..<HASH> 100644
--- a/ella/ellaadmin/options.py
+++ b/ella/ellaadmin/options.py
@@ -7,8 +7,6 @@ from django.utils.safestring import mark_safe
from django.utils.translation import ugettext, ugettext_lazy as _
from django.contrib import admi... | prevent circular imports TODO: this is hotfix only | py |
diff --git a/wda/__init__.py b/wda/__init__.py
index <HASH>..<HASH> 100644
--- a/wda/__init__.py
+++ b/wda/__init__.py
@@ -114,6 +114,7 @@ def httpdo(url, method='GET', data=None):
try:
retjson = response.json()
+ retjson['status'] = retjson.get('status', 0)
r = convert(retjson)
... | fix compatible for the latest modified WDA by appium | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.