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> 100755 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ if sys.argv[-1] == 'publish': sys.exit() tests_require = [ - 'pytest', + 'pytest==2.7.3', 'pytest-cov', 'pytest-runner', ]
Fixes an issue where the newer versions of Pytest can't detect deprecation warnings This was fixed in <URL>
py
diff --git a/test_reporter.py b/test_reporter.py index <HASH>..<HASH> 100644 --- a/test_reporter.py +++ b/test_reporter.py @@ -3,7 +3,7 @@ from mock import patch import moban.reporter as reporter from nose.tools import eq_ -PY2 = sys.info[0] == 2 +PY2 = sys.version_info[0] == 2 if PY2: from StringIO import St...
:shirt: code refactoring all strings go to constants
py
diff --git a/bokeh/models/formatters.py b/bokeh/models/formatters.py index <HASH>..<HASH> 100644 --- a/bokeh/models/formatters.py +++ b/bokeh/models/formatters.py @@ -407,6 +407,9 @@ class DatetimeTickFormatter(TickFormatter): The preferred time representation for the current locale without the date. ...
restore %y docs since it is working
py
diff --git a/lib/webinterface_layout.py b/lib/webinterface_layout.py index <HASH>..<HASH> 100644 --- a/lib/webinterface_layout.py +++ b/lib/webinterface_layout.py @@ -222,6 +222,13 @@ except: register_exception(alert_admin=True, subject='EMERGENCY') WebInterfaceBibCirculationAdminPages = WebInterfaceDumbPages...
BibSched: new web UI for BibSched live view * Adds AJAX interface to view BibSched queue live. Allows view of all information about each task, bibsched mode and MOTD messages. * Adds new action 'cfgbibsched' to control access to the interface. * Can be extended later to allow setting up MOTD, selecting queue mo...
py
diff --git a/ocrd_utils/ocrd_utils/logging.py b/ocrd_utils/ocrd_utils/logging.py index <HASH>..<HASH> 100644 --- a/ocrd_utils/ocrd_utils/logging.py +++ b/ocrd_utils/ocrd_utils/logging.py @@ -126,8 +126,8 @@ def initLogging(): if os.path.exists(f)), None) if config_file: - logging.i...
logging config_file: info->debug, after loading, specific logger
py
diff --git a/pythran/middlend.py b/pythran/middlend.py index <HASH>..<HASH> 100644 --- a/pythran/middlend.py +++ b/pythran/middlend.py @@ -19,6 +19,7 @@ def refine(pm, node, optimizations=default_optimization_sequence): """refine node in place until it matches pythran's expectations""" # sanitize input + ...
Fix ExpandImport ordering It should be called sooner, otherwise some analysis choke on an unknown identifiers which turns out to be a name imported from a module.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -51,7 +51,7 @@ setup( name='libact', version='0.1.2', description='Pool-based active learning in Python', - long_description='Pool-based active learning in Python', + long_description=open('README.md').rea...
set long_description the same as README.md
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ setup( author_email='contact@onurbingol.net', license='MIT', url='https://github.com/orbingol/NURBS-Python', - packages=['geomdl'], + packages=['geomdl', 'geomdl.visualization'], l...
Include visualization component in setup.py
py
diff --git a/traffic/core/flight.py b/traffic/core/flight.py index <HASH>..<HASH> 100644 --- a/traffic/core/flight.py +++ b/traffic/core/flight.py @@ -50,8 +50,7 @@ if TYPE_CHECKING: T = TypeVar("T", bound="Flight") - -if pd.__version__ < "1.3": +if str(pd.__version__) < "1.3": def _tz_interpolate(data, *ar...
remove warnings and tentative fix on documentation issue with pd.__version__
py
diff --git a/ibis/backends/tests/conftest.py b/ibis/backends/tests/conftest.py index <HASH>..<HASH> 100644 --- a/ibis/backends/tests/conftest.py +++ b/ibis/backends/tests/conftest.py @@ -60,6 +60,7 @@ def _get_backends_to_test(): pytest.param( _backend_name_to_class(backend), marks=ge...
TST: show the name of the backend when running tests (#<I>)
py
diff --git a/raven/utils/stacks.py b/raven/utils/stacks.py index <HASH>..<HASH> 100644 --- a/raven/utils/stacks.py +++ b/raven/utils/stacks.py @@ -55,6 +55,9 @@ def get_lines_from_file(filename, lineno, context_lines, loader=None, module_nam except (OSError, IOError): pass + if source is ...
Fixed a stack issue when there's no source file found.
py
diff --git a/pyvisa-py/tcpip.py b/pyvisa-py/tcpip.py index <HASH>..<HASH> 100644 --- a/pyvisa-py/tcpip.py +++ b/pyvisa-py/tcpip.py @@ -383,7 +383,10 @@ class TCPIPSocketSession(Session): return (out + parts[0] + end_byte, constants.StatusCode.success_termination_character_read) - ...
Add more docs about the need for custom a timeout
py
diff --git a/chat/indico_chat/zodbimport.py b/chat/indico_chat/zodbimport.py index <HASH>..<HASH> 100644 --- a/chat/indico_chat/zodbimport.py +++ b/chat/indico_chat/zodbimport.py @@ -67,6 +67,8 @@ class ChatImporter(Importer): elif new == 'notify_emails': value = [email for email in value ...
Import log_url during zodb migration
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -126,8 +126,8 @@ setup( long_description=open("README.md").read(), long_description_content_type="text/markdown", license='New BSD', - author='Anaconda', - author_email='info@anaconda.com', + author='Bo...
Update project author info (#<I>) * Update author info * Update setup.py
py
diff --git a/abydos/util.py b/abydos/util.py index <HASH>..<HASH> 100644 --- a/abydos/util.py +++ b/abydos/util.py @@ -65,9 +65,11 @@ def jitter(nums, factor=1, amount=None, min_val=None, max_val=None, between x values. min_val -- the minimum permitted value in the returned list max_val -- the maximu...
added support for a user-supplied random function arg to jitter
py
diff --git a/nidmresults/objects/generic.py b/nidmresults/objects/generic.py index <HASH>..<HASH> 100644 --- a/nidmresults/objects/generic.py +++ b/nidmresults/objects/generic.py @@ -37,6 +37,25 @@ class NIDMObject(object): oid = NIIRI.qname(Identifier(oid)) self.id = oid + # the next...
RF: Provide an "interface" to perform ID mapping to an external DB See comments inside.
py
diff --git a/tests/unit/modules/btrfs_test.py b/tests/unit/modules/btrfs_test.py index <HASH>..<HASH> 100644 --- a/tests/unit/modules/btrfs_test.py +++ b/tests/unit/modules/btrfs_test.py @@ -249,8 +249,10 @@ class BtrfsTestCase(TestCase): with patch.dict(btrfs.__salt__, {'cmd.run_all': mock}): moc...
fix failure in btrfs_test.py test was failing on machines where /dev/sda3 was mounted
py
diff --git a/pygmsh/helper.py b/pygmsh/helper.py index <HASH>..<HASH> 100644 --- a/pygmsh/helper.py +++ b/pygmsh/helper.py @@ -54,7 +54,8 @@ def generate_mesh( num_quad_lloyd_steps=10, num_lloyd_steps=1000, verbose=True, - dim=3 + dim=3, + prune_vertices=True ): ...
by default, include only those vertices which belong to a triangle
py
diff --git a/tests/tpot_tests.py b/tests/tpot_tests.py index <HASH>..<HASH> 100644 --- a/tests/tpot_tests.py +++ b/tests/tpot_tests.py @@ -792,7 +792,7 @@ def test_clean_pipeline_string(): with_prefix = 'BernoulliNB(input_matrix, BernoulliNB__alpha=1.0, BernoulliNB__fit_prior=True)' without_prefix = 'Bernoull...
Also pass the pset to the from_string method as required.
py
diff --git a/saferecipient.py b/saferecipient.py index <HASH>..<HASH> 100644 --- a/saferecipient.py +++ b/saferecipient.py @@ -13,13 +13,14 @@ class EmailBackend(SMTPEmailBackend): """ def send_messages(self, email_messages): for message in email_messages: - originals = "Originally sent fr...
Handles cc and bcc now.
py
diff --git a/ctd/ctd.py b/ctd/ctd.py index <HASH>..<HASH> 100644 --- a/ctd/ctd.py +++ b/ctd/ctd.py @@ -12,6 +12,8 @@ # obs: New constructors and methods for pandas DataFrame and Series. # +# Standard library. +import warnings # Scientific stack. import numpy as np @@ -179,9 +181,9 @@ def from_cnv(fname, compres...
Using warnings instead of print statements to show alerts. Fixed astype bug.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -49,7 +49,7 @@ version = '0.1.10' setup( name='hydrachain', version=version, - description="", + description="Permissioned Distributed Ledger based on Ethereum", long_description=readme + '\n\n' + history...
Adding `description` to `setup.py` Adding `description` to `setup.py`
py
diff --git a/i18nfield/forms.py b/i18nfield/forms.py index <HASH>..<HASH> 100644 --- a/i18nfield/forms.py +++ b/i18nfield/forms.py @@ -64,6 +64,9 @@ class I18nWidget(forms.MultiWidget): widget.is_localized = self.is_localized # value is a list of values, each corresponding to a widget ...
Widget: Emulate fallback logic of LazyI<I>nString to avoid deleting texts
py
diff --git a/sphinx_gallery/gen_gallery.py b/sphinx_gallery/gen_gallery.py index <HASH>..<HASH> 100644 --- a/sphinx_gallery/gen_gallery.py +++ b/sphinx_gallery/gen_gallery.py @@ -157,10 +157,6 @@ def _prepare_sphx_glr_dirs(gallery_conf, srcdir): if not isinstance(gallery_dirs, list): gallery_dirs = [galle...
Don't create spurious examples/ directory. (#<I>) When using the "separate source and build" layout, sphinx-gallery creates a spurious (and ultimately empty) "examples/" directory next to the Makefile, whereas the correct place for that directory is "source/examples". It is in fact not necessary to pre-create that...
py
diff --git a/km3pipe/io/hdf5.py b/km3pipe/io/hdf5.py index <HASH>..<HASH> 100644 --- a/km3pipe/io/hdf5.py +++ b/km3pipe/io/hdf5.py @@ -107,8 +107,16 @@ class HDF5Sink(Module): return blob def finish(self): - for tab in self._tables.values(): - tab.cols.event_id.create_index() + ...
Fixing indexing bug. I am not crazy
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name='msm', - version='0.5.3', + version='0.5.4', packages=['msm'], install_requires=['GitPython', 'typing'], url='https://github.com/MycroftAI/mycr...
Increment version to <I>
py
diff --git a/cocaine/worker/worker.py b/cocaine/worker/worker.py index <HASH>..<HASH> 100644 --- a/cocaine/worker/worker.py +++ b/cocaine/worker/worker.py @@ -60,7 +60,8 @@ class Worker(object): # it's a fallback mechanism to track # that we are disowned even when the main thread is blocked - ...
[Worker] Increase disown timeout for a threaded timer [skip ci] It's a corner case, so it's ok to use a giant value.
py
diff --git a/aws_syncr/executor.py b/aws_syncr/executor.py index <HASH>..<HASH> 100644 --- a/aws_syncr/executor.py +++ b/aws_syncr/executor.py @@ -61,6 +61,7 @@ class App(App): parser.add_argument("--environment" , help = "Environment to read options from (i.e. the name of the folder as found in t...
Make sure --environment is always specified
py
diff --git a/sos/plugins/pacemaker.py b/sos/plugins/pacemaker.py index <HASH>..<HASH> 100644 --- a/sos/plugins/pacemaker.py +++ b/sos/plugins/pacemaker.py @@ -66,9 +66,6 @@ class Pacemaker(Plugin): def setup(self): self.add_copy_spec([ - # Pacemaker cluster configuration file - "/v...
[pacemaker] leave CIB file collection to crm_report The plugin previously collected the CIB, which may contain sensitive information, without scrubbing it. While the plugin could scrub it, it will already be collected (scrubbed) by the crm_report command run in setup(), so the plugin's collection is redundant and can ...
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -8,8 +8,8 @@ setup(name='trans-notify', author='Micah Ransdell', author_email='mjr578@gmail.com', url='http://github.com/micahr/trans-notify/', - scripts=['notify.py'], - required=['notifo>=0.2.1...
Updates to the setup file so it will run properly.
py
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index <HASH>..<HASH> 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -430,8 +430,10 @@ class TestScriptHeader: expected = '#!"%s"\n' % self.exe_with_spaces asser...
Expect failure on LC_ALL=C also
py
diff --git a/openquake/calculators/extract.py b/openquake/calculators/extract.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/extract.py +++ b/openquake/calculators/extract.py @@ -233,7 +233,7 @@ def extract_hcurves(dstore, what): """ oq = dstore['oqparam'] sitecol = dstore['sitecol'] - rlz...
Refactored the PmapGetter [skip hazardlib]
py
diff --git a/scraper/code_gov/__init__.py b/scraper/code_gov/__init__.py index <HASH>..<HASH> 100644 --- a/scraper/code_gov/__init__.py +++ b/scraper/code_gov/__init__.py @@ -657,7 +657,7 @@ class CodeGovProject(dict): # Currently, can't be an empty string, see: https://github.com/GSA/code-gov-web/issues/370 ...
Fix issues causing Travis CI failure in this branch.
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 @@ -317,9 +317,14 @@ class QtEditor(TextEditBaseWidget): def text(self, line_nb=None): """R...
QtEditor/save-bugfix: was removing systematically last line if empty
py
diff --git a/formats/banks.py b/formats/banks.py index <HASH>..<HASH> 100644 --- a/formats/banks.py +++ b/formats/banks.py @@ -127,15 +127,6 @@ class FormatBank(object): if 'yaml' not in exclude and 'yaml' not in self.registered_formats: try: import yaml - # from ya...
Commented code is bad, mkay
py
diff --git a/tests/test_galpypaper.py b/tests/test_galpypaper.py index <HASH>..<HASH> 100644 --- a/tests/test_galpypaper.py +++ b/tests/test_galpypaper.py @@ -156,6 +156,8 @@ def test_orbitint(): o2.plot(xrange=[0.3,1.],yrange=[-0.2,0.2],color='k') return None +# Currently fails because o.jr(type='adiabatic...
Label one galpy paper test as xfail, because of not-implemented adiabatic actions in Orbits
py
diff --git a/galpy/potential_src/Potential.py b/galpy/potential_src/Potential.py index <HASH>..<HASH> 100644 --- a/galpy/potential_src/Potential.py +++ b/galpy/potential_src/Potential.py @@ -1587,14 +1587,14 @@ def epifreq(Pot,R): 2012-07-25 - Written - Bovy (IAS) """ - from galpy.potential impor...
better implementation of epifreq for lists of potentials, allowing negative contributions (#<I>)
py
diff --git a/vyper/types/convert.py b/vyper/types/convert.py index <HASH>..<HASH> 100644 --- a/vyper/types/convert.py +++ b/vyper/types/convert.py @@ -43,9 +43,6 @@ def to_bool(expr, args, kwargs, context): pos=getpos(expr) ) - elif in_arg.typ.is_literal and in_arg.typ.typ == 'bool': ...
Check not required anymore @signature handles bool arg properly.
py
diff --git a/nxviz/base.py b/nxviz/base.py index <HASH>..<HASH> 100644 --- a/nxviz/base.py +++ b/nxviz/base.py @@ -89,12 +89,16 @@ class BasePlot(object): def draw_nodes(self): """ + Renders the nodes to the plot or screen. + Needs to be implemented for each plot. """ p...
Added comments for draw_nodes and draw_edges
py
diff --git a/zipline/data/bundles/quandl.py b/zipline/data/bundles/quandl.py index <HASH>..<HASH> 100644 --- a/zipline/data/bundles/quandl.py +++ b/zipline/data/bundles/quandl.py @@ -304,12 +304,6 @@ def quandl_bundle(environ, ) -QUANTOPIAN_QUANDL_URL = ( - 'https://s3.amazonaws.com/quantopian-public-ziplin...
BUG: Use the URL actually passed. And move constants closer to where they're used.
py
diff --git a/pymatgen/core/tests/test_structure.py b/pymatgen/core/tests/test_structure.py index <HASH>..<HASH> 100644 --- a/pymatgen/core/tests/test_structure.py +++ b/pymatgen/core/tests/test_structure.py @@ -548,6 +548,15 @@ Direct # # warnings.simplefilter("default") + def test_get_symmetric_neig...
Added test for Structure.get_symmetric_neighbor_list' with tetragonal SG checking that all bonds are related by symmetry.
py
diff --git a/src/livestreamer/plugins/ilive.py b/src/livestreamer/plugins/ilive.py index <HASH>..<HASH> 100644 --- a/src/livestreamer/plugins/ilive.py +++ b/src/livestreamer/plugins/ilive.py @@ -1,3 +1,4 @@ +from livestreamer.compat import urlparse from livestreamer.stream import RTMPStream from livestreamer.plugin i...
plugins.ilive: Add app parameter. Resolves #<I>.
py
diff --git a/crispy_forms/compatibility.py b/crispy_forms/compatibility.py index <HASH>..<HASH> 100644 --- a/crispy_forms/compatibility.py +++ b/crispy_forms/compatibility.py @@ -35,4 +35,9 @@ try: # avoid RemovedInDjango19Warning by using lru_cache where available from django.utils.lru_cache import lru_cache...
Fix lru_cache fallback decorator
py
diff --git a/pandas/tests/indexing/test_floats.py b/pandas/tests/indexing/test_floats.py index <HASH>..<HASH> 100644 --- a/pandas/tests/indexing/test_floats.py +++ b/pandas/tests/indexing/test_floats.py @@ -40,20 +40,7 @@ class TestFloatIndexers: tm.assert_almost_equal(result, expected) - @pytest.mark.p...
TST: broken off from #<I> (#<I>)
py
diff --git a/vyper/types/types.py b/vyper/types/types.py index <HASH>..<HASH> 100644 --- a/vyper/types/types.py +++ b/vyper/types/types.py @@ -163,7 +163,7 @@ def canonicalize_type(t, is_indexed=False): if isinstance(t, ListType): if not isinstance(t.subtype, (ListType, BaseType)): - raise In...
refactor: Remove the `s` from an error message that shouldn't have it
py
diff --git a/atrcopy/diskimages.py b/atrcopy/diskimages.py index <HASH>..<HASH> 100644 --- a/atrcopy/diskimages.py +++ b/atrcopy/diskimages.py @@ -356,7 +356,7 @@ class DiskImageBase(object): def build_sectors(self, data): data = to_numpy(data) - sectors = BaseSectorList(self.header.sector_size) ...
Fixed an argument list after refactoring
py
diff --git a/openid/oidUtil.py b/openid/oidUtil.py index <HASH>..<HASH> 100644 --- a/openid/oidUtil.py +++ b/openid/oidUtil.py @@ -111,8 +111,7 @@ def signReply(reply, key, signed_fields): token.append((i, reply['openid.' + i])) text = ''.join(['%s:%s\n' % (k, v) for k, v in token]) - return (','.joi...
[project @ fix signReply variable references]
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 @@ -170,25 +170,23 @@ class TestRules(unittest.TestCase): t.add_parameter("Two") rule = { - 'ValidateEqual': { - 'Assertions': ...
Adapt test case to the add_rule() interface
py
diff --git a/src/calmjs/tests/test_utils.py b/src/calmjs/tests/test_utils.py index <HASH>..<HASH> 100644 --- a/src/calmjs/tests/test_utils.py +++ b/src/calmjs/tests/test_utils.py @@ -115,13 +115,13 @@ class WhichTestCase(unittest.TestCase): def test_raise_os_error_file_not_found(self): e = OSError if sy...
Also check the exact minor version number - Turns out these couple OSError subclasses only implemented after <I>
py
diff --git a/salt/modules/solr.py b/salt/modules/solr.py index <HASH>..<HASH> 100644 --- a/salt/modules/solr.py +++ b/salt/modules/solr.py @@ -1,18 +1,22 @@ +""" +Manage Apache Solr + +This module uses http requests to talk to the Apache Solr request handlers to +gather information and report errors. Because of this th...
Moved info to docstring in solr module
py
diff --git a/moto/ec2/responses/instances.py b/moto/ec2/responses/instances.py index <HASH>..<HASH> 100644 --- a/moto/ec2/responses/instances.py +++ b/moto/ec2/responses/instances.py @@ -244,7 +244,7 @@ EC2_RUN_INSTANCES = """<RunInstancesResponse xmlns="http://ec2.amazonaws.com/doc <reason/> <key...
Implemented showing ami_launch_index property in responses.
py
diff --git a/marigoso/pytest_notebook.py b/marigoso/pytest_notebook.py index <HASH>..<HASH> 100644 --- a/marigoso/pytest_notebook.py +++ b/marigoso/pytest_notebook.py @@ -107,6 +107,7 @@ class TestScenario(pytest.File): self.kc.execute(setup, allow_stdin=False) def teardown(self): + self.kc.e...
browser teardown to complete failing tests.
py
diff --git a/nodemcu-uploader.py b/nodemcu-uploader.py index <HASH>..<HASH> 100755 --- a/nodemcu-uploader.py +++ b/nodemcu-uploader.py @@ -57,7 +57,7 @@ CHUNK_REPLY = '\v' class Uploader: BAUD = 9600 PORT = '/dev/ttyUSB0' - TIMEOUT = 1 + TIMEOUT = 3 def expect(self, exp='> ', timeout=TIMEOUT): ...
NodeMCU gets restart by DTR, make sure timeout is long enough (also for delaying init.lua code) and sync on NodeMCU welcome message.
py
diff --git a/torchtext/vocab.py b/torchtext/vocab.py index <HASH>..<HASH> 100644 --- a/torchtext/vocab.py +++ b/torchtext/vocab.py @@ -57,7 +57,7 @@ def load_word_vectors(root, wv_type, dim): if wv_size is None: wv_size = len(entries) try: - if isinstance(word, ...
change string_types -> binary_type
py
diff --git a/serpy/serializer.py b/serpy/serializer.py index <HASH>..<HASH> 100644 --- a/serpy/serializer.py +++ b/serpy/serializer.py @@ -34,14 +34,15 @@ class SerializerMeta(type): if issubclass(cls, SerializerBase): field_map.update(cls._field_map) field_map.update(direct_field...
splitted field compilation into two methods so we can easily hack it in subclasses
py
diff --git a/salt/client/mixins.py b/salt/client/mixins.py index <HASH>..<HASH> 100644 --- a/salt/client/mixins.py +++ b/salt/client/mixins.py @@ -256,10 +256,14 @@ class SyncClientMixin(object): jid = low.get('__jid__', salt.utils.jid.gen_jid()) tag = low.get('__tag__', tagify(jid, prefix=self.tag_pr...
Add `fun_args` field to events generated by execution of Master modules
py
diff --git a/git_aggregator/repo.py b/git_aggregator/repo.py index <HASH>..<HASH> 100644 --- a/git_aggregator/repo.py +++ b/git_aggregator/repo.py @@ -141,7 +141,7 @@ class Repo(object): out = self.log_call(['git', 'ls-remote', remote, ref], cwd=self.cwd, ...
Fix a few flake8 errors
py
diff --git a/salt/utils/__init__.py b/salt/utils/__init__.py index <HASH>..<HASH> 100644 --- a/salt/utils/__init__.py +++ b/salt/utils/__init__.py @@ -826,7 +826,7 @@ def format_call(fun, continue extra[key] = copy.deepcopy(value) - # We'll be showing errors to the users until Salt Lithium co...
Fix missed Lithium to Beryllium references
py
diff --git a/jardin/model.py b/jardin/model.py index <HASH>..<HASH> 100644 --- a/jardin/model.py +++ b/jardin/model.py @@ -47,6 +47,22 @@ class Collection(pandas.DataFrame): return results +import pandas.core.reshape.concat +base_concat = pandas.core.reshape.concat.concat + +def concat(*args, **kwargs): + ...
Monkey-patching pandas.concat, not the best thing ever but oh well
py
diff --git a/gitlab/mixins.py b/gitlab/mixins.py index <HASH>..<HASH> 100644 --- a/gitlab/mixins.py +++ b/gitlab/mixins.py @@ -21,11 +21,14 @@ from gitlab import exceptions class GetMixin(object): - def get(self, id, **kwargs): + def get(self, id, lazy=False, **kwargs): """Retrieve a single object. ...
Add laziness to get() The goal is to create empty objects (no API called) but give access to the managers. Using this users can reduce the number of API calls but still use the same API to access children objects. For example the following will only make one API call but will still get the result right: gl.projects....
py
diff --git a/scraper/github/__init__.py b/scraper/github/__init__.py index <HASH>..<HASH> 100644 --- a/scraper/github/__init__.py +++ b/scraper/github/__init__.py @@ -142,6 +142,8 @@ def query_repos(gh_session, orgs=None, repos=None, public_only=True): else: privacy = 'all' + _check_api_limits(gh_ses...
Increase the times we check the API rate limit before continuing
py
diff --git a/manticore/platforms/evm.py b/manticore/platforms/evm.py index <HASH>..<HASH> 100644 --- a/manticore/platforms/evm.py +++ b/manticore/platforms/evm.py @@ -69,7 +69,7 @@ def globalfakesha3(data): consts.add( "oog", - default="complete", + default="ignore", description=( "Default b...
Ignore Gas Calculations by Default (#<I>) As I understand it, this is necessary to get the [building secure contracts](<URL>) repo passing by default. It's also a frequent first step for real-world EVM analysis, so perhaps it will save some time. The tests are performing suspiciously well locally. I would have expe...
py
diff --git a/ospd/ospd_ssh.py b/ospd/ospd_ssh.py index <HASH>..<HASH> 100644 --- a/ospd/ospd_ssh.py +++ b/ospd/ospd_ssh.py @@ -27,6 +27,7 @@ from __future__ import absolute_import import socket +from typing import Optional, Dict from ospd.ospd import OSPDaemon try: @@ -34,7 +35,7 @@ try: except ImportError: ...
Add typing to ospd_ssh.py
py
diff --git a/tests/support/mixins.py b/tests/support/mixins.py index <HASH>..<HASH> 100644 --- a/tests/support/mixins.py +++ b/tests/support/mixins.py @@ -655,20 +655,8 @@ def _fetch_events(q): queue_item.task_done() atexit.register(_clean_queue) - a_config = AdaptedConfigurationTestCaseMixin() -...
Revert part of <I>c since it is not a fix
py
diff --git a/tests/unittest_brain_numpy_core_umath.py b/tests/unittest_brain_numpy_core_umath.py index <HASH>..<HASH> 100644 --- a/tests/unittest_brain_numpy_core_umath.py +++ b/tests/unittest_brain_numpy_core_umath.py @@ -131,7 +131,7 @@ class NumpyBrainCoreUmathTest(unittest.TestCase): for func in self.all_u...
Ufunc objects are no more functions but instances a fake Ufunc class
py
diff --git a/doc/web/hooks/__hooks__.py b/doc/web/hooks/__hooks__.py index <HASH>..<HASH> 100644 --- a/doc/web/hooks/__hooks__.py +++ b/doc/web/hooks/__hooks__.py @@ -1,17 +1,27 @@ # -*- coding: iso-8859-1 -*- +# Hook routines for the wok static site generator. +# Note that mediacompress is a local module. import os ...
Ignore a missing mediacompress since its a local package. [ci skip]
py
diff --git a/hanlp/utils/span_util.py b/hanlp/utils/span_util.py index <HASH>..<HASH> 100644 --- a/hanlp/utils/span_util.py +++ b/hanlp/utils/span_util.py @@ -80,3 +80,18 @@ def bmes_of(sentence, segmented): chars = list(sentence) tags = ['S'] * len(chars) return chars, tags + + +def iobes_to_bil...
Add utility iobes_to_bilou
py
diff --git a/src/cs50/cs50.py b/src/cs50/cs50.py index <HASH>..<HASH> 100644 --- a/src/cs50/cs50.py +++ b/src/cs50/cs50.py @@ -4,8 +4,9 @@ import inspect import re import sys +from distutils.sysconfig import get_python_lib from os.path import abspath, join -from site import getsitepackages, getusersitepackages +fr...
adding support for virtualenvs, which don't support site.getsitepackages
py
diff --git a/pypot/server/server.py b/pypot/server/server.py index <HASH>..<HASH> 100755 --- a/pypot/server/server.py +++ b/pypot/server/server.py @@ -9,15 +9,15 @@ class AbstractServer(object): def run(self): raise NotImplementedError - -try: - import zerorpc - - class RemoteRobotServer(AbstractS...
Update server.py better exception handling than "pass".
py
diff --git a/tests/test_activecollab.py b/tests/test_activecollab.py index <HASH>..<HASH> 100644 --- a/tests/test_activecollab.py +++ b/tests/test_activecollab.py @@ -60,7 +60,7 @@ class TestActiveCollabIssue(ServiceTest): expected_output = { 'project': arbitrary_issue['project'], - '...
Fixes a broken activecollab test.
py
diff --git a/spython/main/export.py b/spython/main/export.py index <HASH>..<HASH> 100644 --- a/spython/main/export.py +++ b/spython/main/export.py @@ -49,11 +49,10 @@ def export(self, sudo=sudo) -def _export(self, - image_path, - pipe=False, - output_file=None, -...
export legacy is not a client function
py
diff --git a/Tangelo/tangelo/stream.py b/Tangelo/tangelo/stream.py index <HASH>..<HASH> 100644 --- a/Tangelo/tangelo/stream.py +++ b/Tangelo/tangelo/stream.py @@ -51,6 +51,10 @@ class TangeloStream(object): del self.streams[key] result["data"] = "OK" + else: + # All...
Disallowing all methods besides GET and DELETE.
py
diff --git a/pymc3/__init__.py b/pymc3/__init__.py index <HASH>..<HASH> 100644 --- a/pymc3/__init__.py +++ b/pymc3/__init__.py @@ -1,5 +1,5 @@ # pylint: disable=wildcard-import -__version__ = "3.5.rc1" +__version__ = "3.5" from .blocking import * from .distributions import *
Increment version to <I>
py
diff --git a/neurom/fst/tests/test_sectionfunc.py b/neurom/fst/tests/test_sectionfunc.py index <HASH>..<HASH> 100644 --- a/neurom/fst/tests/test_sectionfunc.py +++ b/neurom/fst/tests/test_sectionfunc.py @@ -94,6 +94,22 @@ def test_setion_tortuosity_empty_section(): nt.eq_(_sf.section_tortuosity(sec), 1.0) +def...
Add tests for section_tortuosity special case. Looping section tortuosity is infinity. Add tests for that. Resolves #<I>.
py
diff --git a/OpenPNM/Network/__MatFile__.py b/OpenPNM/Network/__MatFile__.py index <HASH>..<HASH> 100644 --- a/OpenPNM/Network/__MatFile__.py +++ b/OpenPNM/Network/__MatFile__.py @@ -152,7 +152,6 @@ class MatFile(GenericNetwork): if throat not in bad_throats: self._throat_m...
bad_pores should be trimmed at the very end of the function so that 'pname_transform' is calculated correctly.
py
diff --git a/particles/smc_samplers.py b/particles/smc_samplers.py index <HASH>..<HASH> 100644 --- a/particles/smc_samplers.py +++ b/particles/smc_samplers.py @@ -359,7 +359,7 @@ def view_2d_array(theta): return v def gen_concatenate(*xs): - if isinstance(xs, numpy.ndarray): + if isinstance(xs, np.ndarray...
smc_samplers: dont mind me, I a f*** idiot
py
diff --git a/mediasync/backends/s3.py b/mediasync/backends/s3.py index <HASH>..<HASH> 100644 --- a/mediasync/backends/s3.py +++ b/mediasync/backends/s3.py @@ -1,7 +1,7 @@ from boto.s3.connection import S3Connection from boto.s3.key import Key from django.conf import settings -from mediasync import JS_MIMETYPES, CSS_...
do not put connection on self as it is never used again
py
diff --git a/patroni/dcs/etcd3.py b/patroni/dcs/etcd3.py index <HASH>..<HASH> 100644 --- a/patroni/dcs/etcd3.py +++ b/patroni/dcs/etcd3.py @@ -315,6 +315,7 @@ class Etcd3Client(AbstractEtcdClientWithFailover): def prefix(self, key, retry=None): return self.range(key, prefix_range_end(key), retry) + @...
Handle expired token for etcd lease_grant (#<I>) (#<I>) Close #<I>
py
diff --git a/examples/consumer.py b/examples/consumer.py index <HASH>..<HASH> 100644 --- a/examples/consumer.py +++ b/examples/consumer.py @@ -61,10 +61,6 @@ class OpenIDRequestHandler(BaseHTTPRequestHandler): trust_root = self.server.base_url return consumer.OpenIDConsumer(trust_root, store, session)...
[project @ remove getDiscovery function from consumer example]
py
diff --git a/usr/share/lib/ipa/tests/SLES/test_sles_hostname.py b/usr/share/lib/ipa/tests/SLES/test_sles_hostname.py index <HASH>..<HASH> 100644 --- a/usr/share/lib/ipa/tests/SLES/test_sles_hostname.py +++ b/usr/share/lib/ipa/tests/SLES/test_sles_hostname.py @@ -1,2 +1,3 @@ def test_sles_hostname(host): - assert ho...
Testinfra host no longer has system info module. Use run module with hostname command to check hostname.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,10 @@ #python3 #encoding: shift-jis -from distutils.core import setup +from setuptools import setup import sys import io -import execjs +version = '1.0.0' +license = "MIT License" with io.open('README.md', encod...
removed dependency on execjs in setup.py and changed from distutils to setuptools so execjs can be defined as a dependency
py
diff --git a/backtrader/indicators/rsi.py b/backtrader/indicators/rsi.py index <HASH>..<HASH> 100644 --- a/backtrader/indicators/rsi.py +++ b/backtrader/indicators/rsi.py @@ -142,11 +142,11 @@ class RelativeStrengthIndex(Indicator): rs = maup / madown will be checked for the special cases in which a `...
Improve doc for RSI for rsi safedivision. Closes #<I>
py
diff --git a/trimesh/path/polygons.py b/trimesh/path/polygons.py index <HASH>..<HASH> 100644 --- a/trimesh/path/polygons.py +++ b/trimesh/path/polygons.py @@ -710,8 +710,28 @@ def projected(mesh, # the projection of each face normal onto facet normal dot_face = np.dot(normal, mesh.face_normals.T) - # che...
check mesh.is_watertight in polygons.projected for different logics
py
diff --git a/src/Exscript/Account.py b/src/Exscript/Account.py index <HASH>..<HASH> 100644 --- a/src/Exscript/Account.py +++ b/src/Exscript/Account.py @@ -23,7 +23,7 @@ class Account(object): This class represents a user account. """ - def __init__(self, name, password, password2 = None, key = None): + ...
Exscript.Account: password defaults to empty string.
py
diff --git a/fluent_comments/views.py b/fluent_comments/views.py index <HASH>..<HASH> 100644 --- a/fluent_comments/views.py +++ b/fluent_comments/views.py @@ -1,5 +1,4 @@ from django.core.exceptions import ObjectDoesNotExist, ValidationError -from django.db import models from django.http import HttpResponse, HttpResp...
Few more fixes for Django <I>
py
diff --git a/livesync/indico_livesync/util.py b/livesync/indico_livesync/util.py index <HASH>..<HASH> 100644 --- a/livesync/indico_livesync/util.py +++ b/livesync/indico_livesync/util.py @@ -31,8 +31,8 @@ def obj_ref(obj, parent=None): elif isinstance(obj, Conference): ref = {'type': 'event', 'event_id': ...
Livesync: Do not fail on contribution deletion
py
diff --git a/blockstack_client/proxy.py b/blockstack_client/proxy.py index <HASH>..<HASH> 100644 --- a/blockstack_client/proxy.py +++ b/blockstack_client/proxy.py @@ -423,7 +423,7 @@ def getinfo(proxy=None, hostport=None): assert host is not None and port is not None protocol = None - ...
port <I> is also http (for testing)
py
diff --git a/twitcher/rpcinterface.py b/twitcher/rpcinterface.py index <HASH>..<HASH> 100644 --- a/twitcher/rpcinterface.py +++ b/twitcher/rpcinterface.py @@ -77,7 +77,7 @@ class RPCInterface(object): public=public, c4i=c4i, overwrite=overwrite) - return service['name'] + ...
fixed api method for clear_services
py
diff --git a/jax/lax/lax_parallel.py b/jax/lax/lax_parallel.py index <HASH>..<HASH> 100644 --- a/jax/lax/lax_parallel.py +++ b/jax/lax/lax_parallel.py @@ -353,7 +353,7 @@ def _defreducer(prim, collective_prim): parallel.papply_primitive_rules[prim] = partial(_reducer_papply, prim, collective_prim) -def _identity...
fix `_identity_papply` to accept axis size
py
diff --git a/discord/message.py b/discord/message.py index <HASH>..<HASH> 100644 --- a/discord/message.py +++ b/discord/message.py @@ -62,6 +62,8 @@ class Message(object): The :class:`Channel` that the message was sent from. Could be a :class:`PrivateChannel` if it's a private message. In :issue:`ve...
Message.channel's Object instance has an is_private attribute now. This was to allow for basic checks such as message.channel.is_private to succeed at the very least. It is a very small mitigation and not perfect since it doesn't have every attribute that PrivateChannel itself has. However you could retrieve the user ...
py
diff --git a/holoviews/core/operation.py b/holoviews/core/operation.py index <HASH>..<HASH> 100644 --- a/holoviews/core/operation.py +++ b/holoviews/core/operation.py @@ -216,6 +216,7 @@ class Operation(param.ParameterizedFunction): kwargs['streams'] = self.p.streams kwargs['per_element'] = self._...
Ensure link_inputs parameter on operations is passed to apply (#<I>)
py
diff --git a/dirutility/hash.py b/dirutility/hash.py index <HASH>..<HASH> 100644 --- a/dirutility/hash.py +++ b/dirutility/hash.py @@ -2,7 +2,7 @@ from hashlib import md5, sha256, sha1, blake2b, blake2s, sha512, shake_128 from xxhash import xxh32, xxh64 -class Hash: +class _HashAlgos: def __init__(self, strin...
REFACTOR Hash class to _HashAlgos
py
diff --git a/nodeconductor/core/admin.py b/nodeconductor/core/admin.py index <HASH>..<HASH> 100644 --- a/nodeconductor/core/admin.py +++ b/nodeconductor/core/admin.py @@ -119,7 +119,7 @@ class CustomAdminSite(admin.AdminSite): instance = cls() instance._registry = admin.site._registry.copy() ...
Copy global_actions from the same field [WAL-<I>]
py
diff --git a/openquake/risk/common.py b/openquake/risk/common.py index <HASH>..<HASH> 100644 --- a/openquake/risk/common.py +++ b/openquake/risk/common.py @@ -25,6 +25,7 @@ or loss curves. from numpy import mean from openquake import shapes +from openquake.utils.general import unique def compute_conditional_lo...
loss curve must have no dups Former-commit-id: <I>e<I>cb<I>ef<I>b5b<I>f<I>b<I>a [formerly <I>baedce3bec<I>f<I>a2ce7c<I>c<I>] Former-commit-id: a1d<I>aaa7b3e2aee<I>ef<I>b<I>ea8c<I>
py
diff --git a/twine/utils.py b/twine/utils.py index <HASH>..<HASH> 100644 --- a/twine/utils.py +++ b/twine/utils.py @@ -90,7 +90,10 @@ def get_config(path="~/.pypirc"): } # Optional configuration values - for key in ["username", "repository", "password"]: + for key in [ + "us...
Allow setting ca_cert and client_cert in config Right now, the settings code expects you to be able to set `ca_cert` and `client_cert` in the `pypirc` as properties of the repository (that's what `get_userpass_value` does). However, the parsing code doesn't read those properties in! This minor change fixes that issue,...
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -124,7 +124,7 @@ setup( 'cython', 'mpi4py', 'nitime', - 'numpy', + 'numpy<1.16', # See https://github.com/Theano/Theano/pull/6671 'scikit-learn[alldeps]>=0.18', 'scip...
dev: Workaround for Theano NumPy incompatibility (#<I>) Theano is not compatible with NumPy>=<I>. A fix exists, but it is not yet part of a release. See: <URL>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,8 @@ setup( packages=[ 'maltego_trx', 'maltego_trx/template_dir', - 'maltego_trx/template_dir/transforms' + 'maltego_trx/template_dir/transforms', + 'maltego_trx/protocol' ...
fix: add protocol package to setup.py
py
diff --git a/Server/Python/tests/dbsserver_t/unittests/web_t/__init__.py b/Server/Python/tests/dbsserver_t/unittests/web_t/__init__.py index <HASH>..<HASH> 100644 --- a/Server/Python/tests/dbsserver_t/unittests/web_t/__init__.py +++ b/Server/Python/tests/dbsserver_t/unittests/web_t/__init__.py @@ -2,7 +2,7 @@ web unit...
put writer before reader; reader reads file written by writer, writer has to go first From: dsr <dsr> git-svn-id: svn+ssh://svn.cern.ch/reps/CMSDMWM/DBS/trunk@<I> <I>e-<I>-<I>b1-a<I>-d<I>a<I>b
py
diff --git a/tests/test_main.py b/tests/test_main.py index <HASH>..<HASH> 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -694,8 +694,8 @@ def test_complicated(tmpdir): "Pgo8L2h0bWw+Cgo=", "Pgo8L2h0bWw+Cg==", ) - stdout = stdout.replace('Hello, "world"\n\n\n', 'Hello, "world"\n') -...
ok NOW it passes on Python 2 and Python 3
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,8 @@ if sys.version_info < (3, 4): tests_require.append('mock') else: django_version = '>=1.10' -install_requires.append('Django%s' % django_version) +setup_requires = ['Django%s' % django_version] +instal...
Add Django as a *setup* requirement too for localisation messages
py